Interface IBootstrapper
This is the interface for all bootstrappers
Namespace:Dapplo.Addons
Assembly:Dapplo.Addons.dll
Syntax
public interface IBootstrapper : IServiceLocator, IMefServiceLocator, IServiceExporter, IServiceRepository, IDependencyProvider, IDisposable
Properties
|
Improve this Doc
View Source
IsInitialized
Is this IBootstrapper initialized?
Declaration
bool IsInitialized { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
|
Improve this Doc
View Source
InitializeAsync(CancellationToken)
Initialize the bootstrapper
Declaration
Task<bool> InitializeAsync(CancellationToken cancellationToken = null)
Parameters
Type |
Name |
Description |
CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
Task<System.Boolean> |
|
|
Improve this Doc
View Source
RegisterForDisposal(IDisposable)
Register a disposable, to dispose when the IBootstrapper is disposed
Declaration
void RegisterForDisposal(IDisposable disposable)
Parameters
Type |
Name |
Description |
IDisposable |
disposable |
IDisposable to dispose together with the bootstapper
|
|
Improve this Doc
View Source
RunAsync(CancellationToken)
Start the bootstrapper, initialize is automatically called when needed
Declaration
Task<bool> RunAsync(CancellationToken cancellationToken = null)
Parameters
Type |
Name |
Description |
CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
Task<System.Boolean> |
|
|
Improve this Doc
View Source
StopAsync(CancellationToken)
Stop the bootstrapper, this cleans up resources and makes it possible to hook into it.
Is also called when being disposed, but as Dispose in not Async this could cause some issues.
Declaration
Task<bool> StopAsync(CancellationToken cancellationToken = null)
Parameters
Type |
Name |
Description |
CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
Task<System.Boolean> |
|