Language

ChannelAdapterServiceCollectionExtensions.AddChannelAdapter<TAdapter> Method

Definition

Registers an adapter for a channel without changing the default adapter.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddChannelAdapter<TAdapter>(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string channelId) where TAdapter : class, Microsoft.Agents.Builder.IChannelAdapter;
static member AddChannelAdapter : Microsoft.Extensions.DependencyInjection.IServiceCollection * string -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'Adapter : null and 'Adapter :> Microsoft.Agents.Builder.IChannelAdapter)
<Extension()>
Public Function AddChannelAdapter(Of TAdapter As {Class, IChannelAdapter}) (services As IServiceCollection, channelId As String) As IServiceCollection

Type Parameters

TAdapter

The adapter implementation.

Parameters

services
IServiceCollection

The service collection to configure.

channelId
String

The channel handled by the adapter.

Returns

The service collection.

Applies to