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

Class Command

Inheritance
System.Object
CommandBase
Command
CommandHelp
CommandOpenMod
CommandOpenModInstall
CommandOpenModPlugins
CommandOpenModPurge
CommandOpenModReload
CommandOpenModRemove
CommandPermission
CommandPermissionAction
CommandRestart
CommandRole
CommandShutdown
CommandLookup
Implements
ICommand
Inherited Members
CommandBase.Context
CommandBase.PrintAsync(String)
CommandBase.PrintAsync(String, Color)
CommandBase.CheckPermissionAsync(String)
Namespace: OpenMod.Core.Commands
Assembly: OpenMod.Core.dll
Syntax
public abstract class Command : CommandBase, ICommand

Constructors

| Improve this Doc View Source

Command(IServiceProvider)

Declaration
protected Command(IServiceProvider serviceProvider)
Parameters
Type Name Description
IServiceProvider serviceProvider

Methods

| Improve this Doc View Source

ExecuteAsync()

Declaration
public override sealed Task ExecuteAsync()
Returns
Type Description
Task
Overrides
CommandBase.ExecuteAsync()
| Improve this Doc View Source

OnExecuteAsync()

Declaration
protected abstract Task OnExecuteAsync()
Returns
Type Description
Task

Implements

ICommand

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)