Table of Contents

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

Task

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

cancellationToken CancellationToken

A token that should dictate when the service should stop.

Returns

Task

Remarks

This method will be called once when the runtime starts.