Class BaseServiceModule
Namespace: RealityCollective.ServiceFramework.Modules
The base Service Module implements IServiceModule and provides default properties for all Service Modules.
public abstract class BaseServiceModule : BaseServiceWithConstructor, IServiceModule, IService
Inheritance
object ← BaseService ← BaseServiceWithConstructor ← BaseServiceModule
Implements
Inherited Members
BaseService.ServiceGuid, BaseService.ServiceModules, BaseService.RegisterServiceModule(IServiceModule), BaseService.UnRegisterServiceModule(IServiceModule), BaseService.Name, BaseService.Priority, BaseService.IsEnabled, BaseService.Initialize(), BaseService.Start(), BaseService.Reset(), BaseService.Update(), BaseService.LateUpdate(), BaseService.FixedUpdate(), BaseService.Destroy(), BaseService.OnApplicationFocus(bool), BaseService.OnApplicationPause(bool), BaseService.IsServiceRegistered, BaseService.RegisterServiceModules, BaseService.Dispose(), BaseService.OnDispose(bool), BaseService.DestroyAllserviceModules()
Constructors
BaseServiceModule(string, uint, BaseProfile, IService)
Constructor.
protected BaseServiceModule(string name, uint priority, BaseProfile profile, IService parentService)
Parameters
name string
The name of the service.
priority uint
The priority of the service.
profile BaseProfile
The optional BaseProfile for the Service Module.
parentService IService
The IService that this IServiceModule is assigned to.
Properties
ParentService
The IService this IServiceModule is registered with.
public IService ParentService { get; }
Property Value
Priority
Optional Priority to reorder registered managers based on their respective priority, reduces the risk of race conditions by prioritizing the order in which services are evaluated.
public override uint Priority { get; }
Property Value
uint
Methods
Destroy()
Optional Destroy function to perform cleanup of the service before the Service Manager is destroyed.
public override void Destroy()