Table of Contents

Class CommandServiceHostBuilderExtensions

Namespace
NetCord.Hosting.Services.Commands
Assembly
NetCord.Hosting.Services.dll
public static class CommandServiceHostBuilderExtensions
Inheritance
CommandServiceHostBuilderExtensions
Inherited Members

Methods

ConfigureCommands(IHostBuilder, Action<CommandServiceOptions, IServiceProvider>)

public static IHostBuilder ConfigureCommands(this IHostBuilder builder, Action<CommandServiceOptions, IServiceProvider> configureOptions)

Parameters

builder IHostBuilder
configureOptions Action<CommandServiceOptions, IServiceProvider>

Returns

IHostBuilder

ConfigureCommands(IHostBuilder, Action<CommandServiceOptions>)

public static IHostBuilder ConfigureCommands(this IHostBuilder builder, Action<CommandServiceOptions> configureOptions)

Parameters

builder IHostBuilder
configureOptions Action<CommandServiceOptions>

Returns

IHostBuilder

ConfigureCommands<TContext>(IHostBuilder, Action<CommandServiceOptions<TContext>, IServiceProvider>)

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

ConfigureCommands<TContext>(IHostBuilder, Action<CommandServiceOptions<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(IHostBuilder)

public static IHostBuilder UseCommands(this IHostBuilder builder)

Parameters

builder IHostBuilder

Returns

IHostBuilder

UseCommands(IHostBuilder, Action<CommandServiceOptions<CommandContext>, IServiceProvider>)

public static IHostBuilder UseCommands(this IHostBuilder builder, Action<CommandServiceOptions<CommandContext>, IServiceProvider> configureOptions)

Parameters

builder IHostBuilder
configureOptions Action<CommandServiceOptions<CommandContext>, IServiceProvider>

Returns

IHostBuilder

UseCommands(IHostBuilder, Action<CommandServiceOptions<CommandContext>>)

public static IHostBuilder UseCommands(this IHostBuilder builder, Action<CommandServiceOptions<CommandContext>> configureOptions)

Parameters

builder IHostBuilder
configureOptions Action<CommandServiceOptions<CommandContext>>

Returns

IHostBuilder

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