Enum ApplicationCommandModuleLifespan
- Namespace
- DisCatSharp.ApplicationCommands.Enums
- Assembly
- DisCatSharp.ApplicationCommands.dll
Represents a application command module lifespan.
public enum ApplicationCommandModuleLifespan
- Extension Methods
Fields
Scoped = 0
Whether this module should be initiated every time a command is run, with dependencies injected from a scope.
Transient = 1
Whether this module should be initiated every time a command is run.
Singleton = 2
Whether this module should be initiated at startup.