Class StartupActionAttribute
This is the attribute for a IStartupModule module
Namespace:Dapplo.Addons
Assembly:Dapplo.Addons.dll
Syntax
public class StartupActionAttribute : ModuleAttribute, IStartupMetadata
Constructors
| Improve this Doc View SourceStartupActionAttribute()
Default constructor
Declaration
public StartupActionAttribute()
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 SourceAwaitStart
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
| Improve this Doc View SourceStartupOrder
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 |