Class SingletonCommandModule
Represents a singleton command module. This type of module is instantiated only when created.
Inheritance
System.Object
SingletonCommandModule
Implements
Namespace: DisCatSharp.CommandsNext.Entities
Assembly: DisCatSharp.CommandsNext.dll
Syntax
public class SingletonCommandModule : ICommandModule
Properties
| Improve this Doc View SourceInstance
Gets this module's instance.
Declaration
public BaseCommandModule Instance { get; }
Property Value
Type | Description |
---|---|
BaseCommandModule |
ModuleType
Gets the type of this module.
Declaration
public Type ModuleType { get; }
Property Value
Type | Description |
---|---|
System.Type |
Methods
| Improve this Doc View SourceGetInstance(IServiceProvider)
Returns the instance of this module.
Declaration
public BaseCommandModule GetInstance(IServiceProvider services)
Parameters
Type | Name | Description |
---|---|---|
System.IServiceProvider | services | Services to instantiate the module with. |
Returns
Type | Description |
---|---|
BaseCommandModule | This module's instance. |