OpenMod Docs OpenMod Docs
OpenMod Docs OpenMod Docs
OpenMod .NET Plugin Framework.

Class CommandStore

Inheritance
System.Object
CommandStore
Implements
ICommandStore
IAsyncDisposable
Namespace: OpenMod.Core.Commands
Assembly: OpenMod.Core.dll
Syntax
public class CommandStore : object, ICommandStore, IAsyncDisposable

Constructors

| Improve this Doc View Source

CommandStore(IOptions<CommandStoreOptions>, IRuntime, IServiceProvider, IPermissionRegistry, ICommandPermissionBuilder, ICommandDataStore, ILogger<CommandStore>)

Declaration
public CommandStore(IOptions<CommandStoreOptions> options, IRuntime runtime, IServiceProvider serviceProvider, IPermissionRegistry permissionRegistry, ICommandPermissionBuilder commandPermissionBuilder, ICommandDataStore commandDataStore, ILogger<CommandStore> logger)
Parameters
Type Name Description
IOptions<CommandStoreOptions> options
IRuntime runtime
IServiceProvider serviceProvider
IPermissionRegistry permissionRegistry
ICommandPermissionBuilder commandPermissionBuilder
ICommandDataStore commandDataStore
ILogger<CommandStore> logger

Methods

| Improve this Doc View Source

DisposeAsync()

Declaration
public ValueTask DisposeAsync()
Returns
Type Description
ValueTask
| Improve this Doc View Source

GetCommandsAsync()

Declaration
public Task<IReadOnlyCollection<ICommandRegistration>> GetCommandsAsync()
Returns
Type Description
Task<IReadOnlyCollection<ICommandRegistration>>
| Improve this Doc View Source

InvalidateAsync()

Declaration
public Task InvalidateAsync()
Returns
Type Description
Task

Implements

ICommandStore
IAsyncDisposable

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)