Table of Contents

Class ComponentInteractionServiceHostBuilderExtensions

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

Methods

ConfigureComponentInteractions(IHostBuilder, Action<ComponentInteractionServiceOptions, IServiceProvider>)

public static IHostBuilder ConfigureComponentInteractions(this IHostBuilder builder, Action<ComponentInteractionServiceOptions, IServiceProvider> configureOptions)

Parameters

builder IHostBuilder
configureOptions Action<ComponentInteractionServiceOptions, IServiceProvider>

Returns

IHostBuilder

ConfigureComponentInteractions(IHostBuilder, Action<ComponentInteractionServiceOptions>)

public static IHostBuilder ConfigureComponentInteractions(this IHostBuilder builder, Action<ComponentInteractionServiceOptions> configureOptions)

Parameters

builder IHostBuilder
configureOptions Action<ComponentInteractionServiceOptions>

Returns

IHostBuilder

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

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

Parameters

builder IHostBuilder
configureOptions Action<ComponentInteractionServiceOptions<TInteraction, TContext>, IServiceProvider>

Returns

IHostBuilder

Type Parameters

TInteraction
TContext

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

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

Parameters

builder IHostBuilder
configureOptions Action<ComponentInteractionServiceOptions<TInteraction, TContext>>

Returns

IHostBuilder

Type Parameters

TInteraction
TContext

UseComponentInteractions<TInteraction, TContext>(IHostBuilder)

public static IHostBuilder UseComponentInteractions<TInteraction, TContext>(this IHostBuilder builder) where TInteraction : ComponentInteraction where TContext : IComponentInteractionContext

Parameters

builder IHostBuilder

Returns

IHostBuilder

Type Parameters

TInteraction
TContext

UseComponentInteractions<TInteraction, TContext>(IHostBuilder, Action<ComponentInteractionServiceOptions<TInteraction, TContext>, IServiceProvider>)

public static IHostBuilder UseComponentInteractions<TInteraction, TContext>(this IHostBuilder builder, Action<ComponentInteractionServiceOptions<TInteraction, TContext>, IServiceProvider> configureOptions) where TInteraction : ComponentInteraction where TContext : IComponentInteractionContext

Parameters

builder IHostBuilder
configureOptions Action<ComponentInteractionServiceOptions<TInteraction, TContext>, IServiceProvider>

Returns

IHostBuilder

Type Parameters

TInteraction
TContext

UseComponentInteractions<TInteraction, TContext>(IHostBuilder, Action<ComponentInteractionServiceOptions<TInteraction, TContext>>)

public static IHostBuilder UseComponentInteractions<TInteraction, TContext>(this IHostBuilder builder, Action<ComponentInteractionServiceOptions<TInteraction, TContext>> configureOptions) where TInteraction : ComponentInteraction where TContext : IComponentInteractionContext

Parameters

builder IHostBuilder
configureOptions Action<ComponentInteractionServiceOptions<TInteraction, TContext>>

Returns

IHostBuilder

Type Parameters

TInteraction
TContext