Interface IAsyncStartupAction
The IAsyncStartupAction is an interface for modules that can be started when the application starts Extend you module with this interface, and use the StartupActionAttribute to annotate the module
Namespace:Dapplo.Addons
Assembly:Dapplo.Addons.dll
Syntax
public interface IAsyncStartupAction : IStartupModule, IModule
Methods
| Improve this Doc View SourceStartAsync(CancellationToken)
Perform a start of whatever needs to be started. Make sure this can be called multiple times, e.g. do nothing when it was already started. throw a StartupException if something went terribly wrong and the application should NOT continue
Declaration
Task StartAsync(CancellationToken token = null)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | token | CancellationToken |
Returns
Type | Description |
---|---|
Task | Task |