Table of Contents

Class CommandServiceServiceCollectionExtensions

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

Methods

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

ConfigureCommands(IServiceCollection, Action<CommandServiceOptions, IServiceProvider>)

public static IServiceCollection ConfigureCommands(this IServiceCollection services, Action<CommandServiceOptions, IServiceProvider> configureOptions)

Parameters

services IServiceCollection
configureOptions Action<CommandServiceOptions, IServiceProvider>

Returns

IServiceCollection

ConfigureCommands(IServiceCollection, Action<CommandServiceOptions>)

public static IServiceCollection ConfigureCommands(this IServiceCollection services, Action<CommandServiceOptions> configureOptions)

Parameters

services IServiceCollection
configureOptions Action<CommandServiceOptions>

Returns

IServiceCollection

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

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

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