Language

AgentApplicationOptions.ChannelAdapterRegistry Property

Definition

Registry of adapters keyed by channelId. Lets the agent resolve the correct IChannelAdapter for a given channel — for example, to send proactive messages or continue a conversation — without knowing adapter types.

public Microsoft.Agents.Builder.Adapters.IChannelAdapterRegistry? ChannelAdapterRegistry { get; set; }
member this.ChannelAdapterRegistry : Microsoft.Agents.Builder.Adapters.IChannelAdapterRegistry with get, set
Public Property ChannelAdapterRegistry As IChannelAdapterRegistry

Property Value

Remarks

Populated from DI when available. If the DI-aware constructor receives an IChannelAdapter but no registry, it creates a registry using that adapter as the default. Programmatically constructed options must set this property or use APIs that accept an adapter explicitly.

Applies to