Skip to main content

Class ServiceConfiguration

Namespace: RealityCollective.ServiceFramework.Definitions

Defines a IService to be registered with the ServiceManager.

[Serializable]
public class ServiceConfiguration : IServiceConfiguration

Inheritance​

object ← ServiceConfiguration

Derived​

ServiceConfiguration<T>

Implements​

IServiceConfiguration

Constructors​

ServiceConfiguration(SystemType, string, uint, IReadOnlyList<IPlatform>, BaseProfile)​

Constructor.

public ServiceConfiguration(SystemType instancedType, string name, uint priority, IReadOnlyList<IPlatform> runtimePlatforms, BaseProfile profile)

Parameters​

instancedType SystemType

The concrete type for the IService.

name string

The simple, human readable name for the IService.

priority uint

The priority this IService will be initialized in.

runtimePlatforms IReadOnlyList<IPlatform>

profile BaseProfile

The BaseProfile for IService.

Properties​

Enabled​

public virtual bool Enabled { get; }

Property Value​

bool

InstancedType​

The concrete type for the IService that will be instantiated and ran by the service locator.

public SystemType InstancedType { get; }

Property Value​

SystemType

Name​

The simple, human readable name for the IService.

public string Name { get; }

Property Value​

string

Remarks​

This name should be unique.

Priority​

The priority order of execution for this IService.

public uint Priority { get; }

Property Value​

uint

Remarks​

Multiple IServices may be running at the same priority for services that are not specifically registered to the ServiceManager.ActiveServices.

Profile​

The BaseProfile for IService.

public BaseProfile Profile { get; }

Property Value​

BaseProfile

RuntimePlatforms​

The runtime IPlatform(s) to run this IService to run on.

public IReadOnlyList<IPlatform> RuntimePlatforms { get; }

Property Value​

IReadOnlyList<IPlatform>