• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Dapplo.Addons
    • IAction
    • IApplicationBootstrapper
    • IAsyncShutdownAction
    • IAsyncStartupAction
    • IBootstrapper
    • IDependencyProvider
    • IMefServiceLocator
    • IModule
    • IServiceExporter
    • IServiceRepository
    • IShutdownAction
    • IShutdownMetadata
    • IShutdownModule
    • IStartupAction
    • IStartupMetadata
    • IStartupModule
    • ModuleAttribute
    • ShutdownActionAttribute
    • StartupActionAttribute
    • StartupException
  • Dapplo.Addons.Bootstrapper
    • ApplicationBootstrapper
    • CompositionBootstrapper
    • ResourceMutex
    • StartupShutdownBootstrapper
  • Dapplo.Addons.Bootstrapper.Internal
    • CompressionTypes
    • StreamExtensions
  • Dapplo.Addons.Bootstrapper.Resolving
    • AssemblyResolver
    • EmbeddedResources
    • FileLocations
    • FileTools

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 Source

StartAsync(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

  • Improve this Doc
  • View Source
Back to top Copyright © 2017 Dapplo