Class CommandDataStore
Inheritance
System.Object
CommandDataStore
Implements
IAsyncDisposable
Assembly: OpenMod.Core.dll
Syntax
public class CommandDataStore : object, ICommandDataStore, IAsyncDisposable
Constructors
|
Improve this Doc
View Source
CommandDataStore(IOpenModDataStoreAccessor, IRuntime, Lazy<ICommandStore>, ILogger<CommandDataStore>)
Declaration
public CommandDataStore(IOpenModDataStoreAccessor dataStoreAccessor, IRuntime runtime, Lazy<ICommandStore> commandStore, ILogger<CommandDataStore> logger)
Parameters
Fields
|
Improve this Doc
View Source
CommandsKey
Declaration
public const string CommandsKey = null
Field Value
Type |
Description |
System.String |
|
Methods
|
Improve this Doc
View Source
DisposeAsync()
Declaration
public ValueTask DisposeAsync()
Returns
Type |
Description |
ValueTask |
|
|
Improve this Doc
View Source
GetCommandDataAsync<T>(String, String)
Declaration
public Task<T> GetCommandDataAsync<T>(string commandId, string key)
Parameters
Type |
Name |
Description |
System.String |
commandId |
|
System.String |
key |
|
Returns
Type Parameters
|
Improve this Doc
View Source
GetRegisteredCommandAsync(String)
Declaration
public Task<RegisteredCommandData> GetRegisteredCommandAsync(string commandId)
Parameters
Type |
Name |
Description |
System.String |
commandId |
|
Returns
|
Improve this Doc
View Source
GetRegisteredCommandsAsync()
Declaration
public Task<RegisteredCommandsData> GetRegisteredCommandsAsync()
Returns
|
Improve this Doc
View Source
SetCommandDataAsync(RegisteredCommandData)
Declaration
public Task SetCommandDataAsync(RegisteredCommandData commandData)
Parameters
Returns
|
Improve this Doc
View Source
SetCommandDataAsync<T>(String, String, T)
Declaration
public Task SetCommandDataAsync<T>(string commandId, string key, T value)
Parameters
Type |
Name |
Description |
System.String |
commandId |
|
System.String |
key |
|
T |
value |
|
Returns
Type Parameters
|
Improve this Doc
View Source
SetRegisteredCommandsAsync(RegisteredCommandsData)
Declaration
public Task SetRegisteredCommandsAsync(RegisteredCommandsData data)
Parameters
Returns
Implements
IAsyncDisposable
Extension Methods