ChannelAdapterServiceCollectionExtensions.SetDefaultChannelAdapter<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.
Explicitly selects an adapter as the default, replacing any previous default selection.
public static Microsoft.Extensions.DependencyInjection.IServiceCollection SetDefaultChannelAdapter<TAdapter>(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TAdapter : class, Microsoft.Agents.Builder.IChannelAdapter;
static member SetDefaultChannelAdapter : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'Adapter : null and 'Adapter :> Microsoft.Agents.Builder.IChannelAdapter)
<Extension()>
Public Function SetDefaultChannelAdapter(Of TAdapter As {Class, IChannelAdapter}) (services As IServiceCollection) As IServiceCollection
Type Parameters
- TAdapter
The default adapter implementation.
Parameters
- services
- IServiceCollection
The service collection to configure.
Returns
The service collection.