Language

IChannelAdapterRegistry.TryGetAdapter(String, IChannelAdapter) Method

Definition

Tries to get the adapter for the specified channelId.

public bool TryGetAdapter(string channelId, out Microsoft.Agents.Builder.IChannelAdapter adapter);
abstract member TryGetAdapter : string * IChannelAdapter -> bool
Public Function TryGetAdapter (channelId As String, ByRef adapter As IChannelAdapter) As Boolean

Parameters

channelId
String

The channelId to resolve.

adapter
IChannelAdapter

The resolved adapter, or null if none is registered.

Returns

true if a channel-specific adapter is registered; otherwise false.

Applies to