IChannelAdapterRegistry.TryGetAdapter(String, IChannelAdapter) 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.
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.