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

Class CommandExecutor

Inheritance
System.Object
CommandExecutor
Implements
ICommandExecutor
Namespace: OpenMod.Core.Commands
Assembly: OpenMod.Core.dll
Syntax
public class CommandExecutor : object, ICommandExecutor

Constructors

| Improve this Doc View Source

CommandExecutor(IRuntime, ILifetimeScope, ICommandStore, ICommandPermissionBuilder, IEventBus, ILogger<CommandExecutor>)

Declaration
public CommandExecutor(IRuntime runtime, ILifetimeScope lifetimeScope, ICommandStore commandStore, ICommandPermissionBuilder commandPermissionBuilder, IEventBus eventBus, ILogger<CommandExecutor> logger)
Parameters
Type Name Description
IRuntime runtime
ILifetimeScope lifetimeScope
ICommandStore commandStore
ICommandPermissionBuilder commandPermissionBuilder
IEventBus eventBus
ILogger<CommandExecutor> logger

Methods

| Improve this Doc View Source

ExecuteAsync(ICommandActor, String[], String)

Declaration
public Task<ICommandContext> ExecuteAsync(ICommandActor actor, string[] args, string prefix)
Parameters
Type Name Description
ICommandActor actor
System.String[] args
System.String prefix
Returns
Type Description
Task<ICommandContext>

Implements

ICommandExecutor

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)