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

Class CommandStoreOptions

Inheritance
System.Object
CommandStoreOptions
Namespace: OpenMod.Core.Commands
Assembly: OpenMod.Core.dll
Syntax
public class CommandStoreOptions : object

Constructors

| Improve this Doc View Source

CommandStoreOptions()

Declaration
public CommandStoreOptions()

Methods

| Improve this Doc View Source

AddCommandSource(ICommandSource)

Declaration
public void AddCommandSource(ICommandSource commandSource)
Parameters
Type Name Description
ICommandSource commandSource
| Improve this Doc View Source

AddCommandSource(Type)

Declaration
public void AddCommandSource(Type type)
Parameters
Type Name Description
Type type
| Improve this Doc View Source

AddCommandSource<TSource>()

Declaration
public void AddCommandSource<TSource>()
    where TSource : ICommandSource
Type Parameters
Name Description
TSource
| Improve this Doc View Source

CreateCommandSources(IServiceProvider)

Declaration
public IReadOnlyCollection<ICommandSource> CreateCommandSources(IServiceProvider serviceProvider)
Parameters
Type Name Description
IServiceProvider serviceProvider
Returns
Type Description
IReadOnlyCollection<ICommandSource>
| Improve this Doc View Source

RemoveCommandSource(ICommandSource)

Declaration
public void RemoveCommandSource(ICommandSource commandSource)
Parameters
Type Name Description
ICommandSource commandSource
| Improve this Doc View Source

RemoveCommandSource(Type)

Declaration
public bool RemoveCommandSource(Type type)
Parameters
Type Name Description
Type type
Returns
Type Description
System.Boolean
| Improve this Doc View Source

RemoveCommandSource<TSource>()

Declaration
public void RemoveCommandSource<TSource>()
    where TSource : ICommandSource
Type Parameters
Name Description
TSource

Events

| Improve this Doc View Source

OnCommandSourcesChanged

Declaration
public event CommandStoreOptions.CommandSourcesChanged OnCommandSourcesChanged
Event Type
Type Description
CommandStoreOptions.CommandSourcesChanged

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)