Class UnityTimerServiceFactory
Factory for creating Unity-specific timer services as MonoBehaviour components.
Provides centralized creation of timer services with proper GameObject setup and initialization.
Implements
Inherited Members
Namespace: Serenity.Timer.Infrastructure.Services
Assembly: Serenity.UnityTimer.Infrastructure.dll
Syntax
public class UnityTimerServiceFactory : ITimerServiceFactory
Constructors
UnityTimerServiceFactory()
Declaration
public UnityTimerServiceFactory()
Methods
CreateService(string, TimerFactory, ILogService)
Creates a new Unity timer service with the specified configuration.
Instantiates a GameObject with the timer service component and initializes it with the provided factory.
Declaration
public ITimerService CreateService(string serviceName, TimerFactory timerFactory, ILogService logService)
Parameters
| Type | Name | Description |
|---|---|---|
| string | serviceName | The name to assign to the service GameObject |
| TimerFactory | timerFactory | The timer factory for creating individual timer instances |
| ILogService | logService | The log service to be used by the timer service. |
Returns
| Type | Description |
|---|---|
| ITimerService | A configured Unity timer service instance |