IChannelAdapter Interface
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.
Represents an Adapter that can connect an Agent to a service endpoint.
public interface IChannelAdapter
type IChannelAdapter = interface
Public Interface IChannelAdapter
- Derived
Remarks
The Adapter encapsulates processing a received Activity, creates an ITurnContext and calls OnTurnAsync(ITurnContext, CancellationToken). When your Agent receives an activity, response are sent to the caller via SendActivityAsync(IActivity, CancellationToken).
Properties
| MiddlewareSet |
Gets the collection of middleware in the Adapter's pipeline. |
| OnTurnError |
Gets or sets an error handler that can catch exceptions in the middleware or application. |