Table of Contents

Class ComponentInteractionServiceServiceCollectionExtensions

Namespace
NetCord.Hosting.Services.ComponentInteractions
Assembly
NetCord.Hosting.Services.dll
public static class ComponentInteractionServiceServiceCollectionExtensions
Inheritance
ComponentInteractionServiceServiceCollectionExtensions
Inherited Members

Methods

AddComponentInteractions<TInteraction, TContext>(IServiceCollection)

public static IServiceCollection AddComponentInteractions<TInteraction, TContext>(this IServiceCollection services) where TInteraction : ComponentInteraction where TContext : IComponentInteractionContext

Parameters

services IServiceCollection

Returns

IServiceCollection

Type Parameters

TInteraction
TContext

AddComponentInteractions<TInteraction, TContext>(IServiceCollection, Action<ComponentInteractionServiceOptions<TInteraction, TContext>, IServiceProvider>)

public static IServiceCollection AddComponentInteractions<TInteraction, TContext>(this IServiceCollection services, Action<ComponentInteractionServiceOptions<TInteraction, TContext>, IServiceProvider> configureOptions) where TInteraction : ComponentInteraction where TContext : IComponentInteractionContext

Parameters

services IServiceCollection
configureOptions Action<ComponentInteractionServiceOptions<TInteraction, TContext>, IServiceProvider>

Returns

IServiceCollection

Type Parameters

TInteraction
TContext

AddComponentInteractions<TInteraction, TContext>(IServiceCollection, Action<ComponentInteractionServiceOptions<TInteraction, TContext>>)

public static IServiceCollection AddComponentInteractions<TInteraction, TContext>(this IServiceCollection services, Action<ComponentInteractionServiceOptions<TInteraction, TContext>> configureOptions) where TInteraction : ComponentInteraction where TContext : IComponentInteractionContext

Parameters

services IServiceCollection
configureOptions Action<ComponentInteractionServiceOptions<TInteraction, TContext>>

Returns

IServiceCollection

Type Parameters

TInteraction
TContext

ConfigureComponentInteractions(IServiceCollection, Action<ComponentInteractionServiceOptions, IServiceProvider>)

public static IServiceCollection ConfigureComponentInteractions(this IServiceCollection services, Action<ComponentInteractionServiceOptions, IServiceProvider> configureOptions)

Parameters

services IServiceCollection
configureOptions Action<ComponentInteractionServiceOptions, IServiceProvider>

Returns

IServiceCollection

ConfigureComponentInteractions(IServiceCollection, Action<ComponentInteractionServiceOptions>)

public static IServiceCollection ConfigureComponentInteractions(this IServiceCollection services, Action<ComponentInteractionServiceOptions> configureOptions)

Parameters

services IServiceCollection
configureOptions Action<ComponentInteractionServiceOptions>

Returns

IServiceCollection

ConfigureComponentInteractions<TInteraction, TContext>(IServiceCollection, Action<ComponentInteractionServiceOptions<TInteraction, TContext>, IServiceProvider>)

public static IServiceCollection ConfigureComponentInteractions<TInteraction, TContext>(this IServiceCollection services, Action<ComponentInteractionServiceOptions<TInteraction, TContext>, IServiceProvider> configureOptions) where TInteraction : ComponentInteraction where TContext : IComponentInteractionContext

Parameters

services IServiceCollection
configureOptions Action<ComponentInteractionServiceOptions<TInteraction, TContext>, IServiceProvider>

Returns

IServiceCollection

Type Parameters

TInteraction
TContext

ConfigureComponentInteractions<TInteraction, TContext>(IServiceCollection, Action<ComponentInteractionServiceOptions<TInteraction, TContext>>)

public static IServiceCollection ConfigureComponentInteractions<TInteraction, TContext>(this IServiceCollection services, Action<ComponentInteractionServiceOptions<TInteraction, TContext>> configureOptions) where TInteraction : ComponentInteraction where TContext : IComponentInteractionContext

Parameters

services IServiceCollection
configureOptions Action<ComponentInteractionServiceOptions<TInteraction, TContext>>

Returns

IServiceCollection

Type Parameters

TInteraction
TContext