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

Interface ICommandStore

The service for getting commands.

Namespace: OpenMod.API.Commands
Assembly: OpenMod.API.dll
Syntax
public interface ICommandStore

Methods

| Improve this Doc View Source

GetCommandsAsync()

Gets the commands of all registered ICommandSources.

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

InvalidateAsync()

Refreshes the cache. Must be used if a command source has added or removed commands.

Declaration
Task InvalidateAsync()
Returns
Type Description
Task

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)