Class ModuleLifespanAttribute
Defines a lifespan for this command module.
Inheritance
System.Object
System.Attribute
ModuleLifespanAttribute
Namespace: DisCatSharp.CommandsNext.Attributes
Assembly: DisCatSharp.CommandsNext.dll
Syntax
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public class ModuleLifespanAttribute : Attribute
Constructors
| Improve this Doc View SourceModuleLifespanAttribute(ModuleLifespan)
Defines a lifespan for this command module.
Declaration
public ModuleLifespanAttribute(ModuleLifespan lifespan)
Parameters
Type | Name | Description |
---|---|---|
ModuleLifespan | lifespan | Lifespan for this module. |
Properties
| Improve this Doc View SourceLifespan
Gets the lifespan defined for this module.
Declaration
public ModuleLifespan Lifespan { get; }
Property Value
Type | Description |
---|---|
ModuleLifespan |