Table of Contents

Class ServiceCollectionCommandsExtensions

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

Extension methods for configuring the command system in the dependency injection container.

public static class ServiceCollectionCommandsExtensions
Inheritance
ServiceCollectionCommandsExtensions
Inherited Members

Methods

AddCommandsSystem(IServiceCollection)

Adds core command system services to the service collection.

public static IServiceCollection AddCommandsSystem(this IServiceCollection services)

Parameters

services IServiceCollection

Returns

IServiceCollection

The service collection for chaining.

AddConsoleCommands(IServiceCollection, Action<ConsoleCommandServiceOptions>?)

Adds console command services to the service collection.

public static IServiceCollection AddConsoleCommands(this IServiceCollection services, Action<ConsoleCommandServiceOptions>? configure = null)

Parameters

services IServiceCollection
configure Action<ConsoleCommandServiceOptions>

An optional action to configure console command service options.

Returns

IServiceCollection

The service collection for chaining.

AddPlayerCommands(IServiceCollection, Action<PlayerCommandServiceOptions>?)

Adds player command services to the service collection.

public static IServiceCollection AddPlayerCommands(this IServiceCollection services, Action<PlayerCommandServiceOptions>? configure = null)

Parameters

services IServiceCollection
configure Action<PlayerCommandServiceOptions>

An optional action to configure player command service options.

Returns

IServiceCollection

The service collection for chaining.