ChannelAdapterServiceCollectionExtensions.AddChannelAdapter<TAdapter> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.