ChannelAdapterServiceCollectionExtensions.TrySetDefaultChannelAdapter<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.
Selects an adapter as the default unless a default has already been selected.
public static Microsoft.Extensions.DependencyInjection.IServiceCollection TrySetDefaultChannelAdapter<TAdapter>(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TAdapter : class, Microsoft.Agents.Builder.IChannelAdapter;
static member TrySetDefaultChannelAdapter : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'Adapter : null and 'Adapter :> Microsoft.Agents.Builder.IChannelAdapter)
<Extension()>
Public Function TrySetDefaultChannelAdapter(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.