Table of Contents

Interface IConsoleCommandService

Namespace
SampSharp.Entities.SAMP.Commands
Assembly
SampSharp.OpenMp.Entities.Commands.dll

Dispatches console input to a method marked with ConsoleCommandAttribute.

public interface IConsoleCommandService

Properties

Registry

Gets the command registry containing all registered console commands.

ICommandRegistry Registry { get; }

Property Value

ICommandRegistry

Methods

Invoke(IServiceProvider, ConsoleCommandDispatchContext, string)

Invokes a console command from the given input text.

bool Invoke(IServiceProvider services, ConsoleCommandDispatchContext context, string inputText)

Parameters

services IServiceProvider

The service provider for dependency injection.

context ConsoleCommandDispatchContext

The context for the console command dispatch.

inputText string

The input text representing the command to invoke.

Returns

bool

true if the command was successfully invoked; otherwise, false.