Class CommandServiceServiceCollectionExtensions
- Namespace
- NetCord.Hosting.Services.Commands
- Assembly
- NetCord.Hosting.Services.dll
public static class CommandServiceServiceCollectionExtensions
- Inheritance
-
CommandServiceServiceCollectionExtensions
- Inherited Members
-
Methods
AddCommands(IServiceCollection)
public static IServiceCollection AddCommands(this IServiceCollection services)
Parameters
services
IServiceCollection
Returns
- IServiceCollection
AddCommands(IServiceCollection, Action<CommandServiceOptions<CommandContext>, IServiceProvider>)
public static IServiceCollection AddCommands(this IServiceCollection services, Action<CommandServiceOptions<CommandContext>, IServiceProvider> configureOptions)
Parameters
services
IServiceCollection
configureOptions
Action<CommandServiceOptions<CommandContext>, IServiceProvider>
Returns
- IServiceCollection
AddCommands(IServiceCollection, Action<CommandServiceOptions<CommandContext>>)
public static IServiceCollection AddCommands(this IServiceCollection services, Action<CommandServiceOptions<CommandContext>> configureOptions)
Parameters
services
IServiceCollection
configureOptions
Action<CommandServiceOptions<CommandContext>>
Returns
- IServiceCollection
AddCommands<TContext>(IServiceCollection)
public static IServiceCollection AddCommands<TContext>(this IServiceCollection services) where TContext : ICommandContext
Parameters
services
IServiceCollection
Returns
- IServiceCollection
Type Parameters
TContext
AddCommands<TContext>(IServiceCollection, Action<CommandServiceOptions<TContext>, IServiceProvider>)
public static IServiceCollection AddCommands<TContext>(this IServiceCollection services, Action<CommandServiceOptions<TContext>, IServiceProvider> configureOptions) where TContext : ICommandContext
Parameters
services
IServiceCollection
configureOptions
Action<CommandServiceOptions<TContext>, IServiceProvider>
Returns
- IServiceCollection
Type Parameters
TContext
AddCommands<TContext>(IServiceCollection, Action<CommandServiceOptions<TContext>>)
public static IServiceCollection AddCommands<TContext>(this IServiceCollection services, Action<CommandServiceOptions<TContext>> configureOptions) where TContext : ICommandContext
Parameters
services
IServiceCollection
configureOptions
Action<CommandServiceOptions<TContext>>
Returns
- IServiceCollection
Type Parameters
TContext
public static IServiceCollection ConfigureCommands(this IServiceCollection services, Action<CommandServiceOptions, IServiceProvider> configureOptions)
Parameters
services
IServiceCollection
configureOptions
Action<CommandServiceOptions, IServiceProvider>
Returns
- IServiceCollection
public static IServiceCollection ConfigureCommands(this IServiceCollection services, Action<CommandServiceOptions> configureOptions)
Parameters
services
IServiceCollection
configureOptions
Action<CommandServiceOptions>
Returns
- IServiceCollection
public static IServiceCollection ConfigureCommands<TContext>(this IServiceCollection services, Action<CommandServiceOptions<TContext>, IServiceProvider> configureOptions) where TContext : ICommandContext
Parameters
services
IServiceCollection
configureOptions
Action<CommandServiceOptions<TContext>, IServiceProvider>
Returns
- IServiceCollection
Type Parameters
TContext
public static IServiceCollection ConfigureCommands<TContext>(this IServiceCollection services, Action<CommandServiceOptions<TContext>> configureOptions) where TContext : ICommandContext
Parameters
services
IServiceCollection
configureOptions
Action<CommandServiceOptions<TContext>>
Returns
- IServiceCollection
Type Parameters
TContext