Interface IService
This is used by our Service/IManagers when the Manager needs to setup or cleanup, which should not be performed in the constructor or destructor.
Namespace: IdleKit.Framework
Assembly: cs.temp.dll.dll
Syntax
public interface IService : IInjectable
Methods
Cleanup()
Perform custom cleanup logic for the IService.
Declaration
void Cleanup()
Initialize(Action<IService>)
Perform custom setup logic for the IService.
The optional callback
is there so Initialize() can be used asynchronously.
Declaration
void Initialize(Action<IService> callback = null)
Parameters
Type | Name | Description |
---|---|---|
Action<IService> | callback |