Interface IService
- Namespace
- Homa.Sdk.Foundation
- Assembly
- Homa.Sdk.Foundation.dll
One of the application's services to be managed by the Homa SDK runtime.
public interface IService
Methods
InitializeAsync()
Initializes the service.
Task InitializeAsync()
Returns
RunAsync(CancellationToken)
Makes the service do any periodic work it might need to do: processing buffers, sending requests, persisting data etc.
Task RunAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token that should dictate when the service should stop.
Returns
Remarks
This method will be called once when the runtime starts.