Skip to main content

Class BaseServiceProfile<TService>

Namespace: RealityCollective.ServiceFramework.Definitions

The base profile type to derive all IServices from.

public abstract class BaseServiceProfile<TService> : BaseProfile, IServiceProfile<TService> where TService : IService

Type Parameters​

TService

The IService type to constrain all of the valid InstancedTypes to. Only types that implement the TService will show up in the inspector dropdown for the InstancedType

Inheritance​

ScriptableObject ← BaseProfile ← BaseServiceProfile<TService>

Implements​

IServiceProfile<TService>

Inherited Members​

BaseProfile.ParentProfile

Extension Methods​

BaseProfileInspectorExtensions.CopySerializedValues(BaseProfile, BaseProfile), BaseProfileInspectorExtensions.CreateNewProfileInstance(BaseProfile, SerializedProperty, Type, bool), ValidateConfiguration.ValidateService<TService>(BaseServiceProfile<TService>, Type[], IServiceConfiguration<TService>[], bool)

Properties​

ServiceConfigurations​

The IServiceConfigurations registered for this profile.

public IServiceConfiguration<TService>[] ServiceConfigurations { get; }

Property Value​

IServiceConfiguration<TService>[]

Methods​

AddConfiguration(IServiceConfiguration<TService>)​

Adds the configuration to the profile.

public void AddConfiguration(IServiceConfiguration<TService> configuration)

Parameters​

configuration IServiceConfiguration<TService>

The IServiceConfiguration to add.