Class ServiceCollectionCommandsExtensions
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
servicesIServiceCollection
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
servicesIServiceCollectionconfigureAction<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
servicesIServiceCollectionconfigureAction<PlayerCommandServiceOptions>An optional action to configure player command service options.
Returns
- IServiceCollection
The service collection for chaining.