Class CommandServiceHostBuilderExtensions
- Namespace
- NetCord.Hosting.Services.Commands
- Assembly
- NetCord.Hosting.Services.dll
public static class CommandServiceHostBuilderExtensions
- Inheritance
-
CommandServiceHostBuilderExtensions
- Inherited Members
-
Methods
public static IHostBuilder ConfigureCommands(this IHostBuilder builder, Action<CommandServiceOptions, IServiceProvider> configureOptions)
Parameters
builder
IHostBuilder
configureOptions
Action<CommandServiceOptions, IServiceProvider>
Returns
- IHostBuilder
public static IHostBuilder ConfigureCommands(this IHostBuilder builder, Action<CommandServiceOptions> configureOptions)
Parameters
builder
IHostBuilder
configureOptions
Action<CommandServiceOptions>
Returns
- IHostBuilder
public static IHostBuilder ConfigureCommands<TContext>(this IHostBuilder builder, Action<CommandServiceOptions<TContext>, IServiceProvider> configureOptions) where TContext : ICommandContext
Parameters
builder
IHostBuilder
configureOptions
Action<CommandServiceOptions<TContext>, IServiceProvider>
Returns
- IHostBuilder
Type Parameters
TContext
public static IHostBuilder ConfigureCommands<TContext>(this IHostBuilder builder, Action<CommandServiceOptions<TContext>> configureOptions) where TContext : ICommandContext
Parameters
builder
IHostBuilder
configureOptions
Action<CommandServiceOptions<TContext>>
Returns
- IHostBuilder
Type Parameters
TContext
UseCommands<TContext>(IHostBuilder)
public static IHostBuilder UseCommands<TContext>(this IHostBuilder builder) where TContext : ICommandContext
Parameters
builder
IHostBuilder
Returns
- IHostBuilder
Type Parameters
TContext
UseCommands<TContext>(IHostBuilder, Action<CommandServiceOptions<TContext>, IServiceProvider>)
public static IHostBuilder UseCommands<TContext>(this IHostBuilder builder, Action<CommandServiceOptions<TContext>, IServiceProvider> configureOptions) where TContext : ICommandContext
Parameters
builder
IHostBuilder
configureOptions
Action<CommandServiceOptions<TContext>, IServiceProvider>
Returns
- IHostBuilder
Type Parameters
TContext
UseCommands<TContext>(IHostBuilder, Action<CommandServiceOptions<TContext>>)
public static IHostBuilder UseCommands<TContext>(this IHostBuilder builder, Action<CommandServiceOptions<TContext>> configureOptions) where TContext : ICommandContext
Parameters
builder
IHostBuilder
configureOptions
Action<CommandServiceOptions<TContext>>
Returns
- IHostBuilder
Type Parameters
TContext