• 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

Class StartupActionAttribute

This is the attribute for a IStartupModule module

Inheritance
System.Object
ModuleAttribute
StartupActionAttribute
Namespace:Dapplo.Addons
Assembly:Dapplo.Addons.dll
Syntax
public class StartupActionAttribute : ModuleAttribute, IStartupMetadata

Constructors

| Improve this Doc View Source

StartupActionAttribute()

Default constructor

Declaration
public StartupActionAttribute()
| Improve this Doc View Source

StartupActionAttribute(String)

Use a specific contract name for the IStartupModule

Declaration
public StartupActionAttribute(string contractName)
Parameters
Type Name Description
System.String contractName

Properties

| Improve this Doc View Source

AwaitStart

Specify if the startup needs to be awaited, this could be set to false if you want to have a task doing something in the background In general you would like this to be true, otherwise depending code might be started to early

Declaration
public bool AwaitStart { get; set; }
Property Value
Type Description
System.Boolean
Implements
IStartupMetadata.AwaitStart
| Improve this Doc View Source

StartupOrder

Here the order of the startup action can be specified, starting with low values and ending with high. With this a cheap form of "dependency" management is made.

Declaration
public int StartupOrder { get; set; }
Property Value
Type Description
System.Int32
Implements
IStartupMetadata.StartupOrder
  • Improve this Doc
  • View Source
Back to top Copyright © 2017 Dapplo