IChannelResponseHandler 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.
Defines methods for handling the lifecycle of an HTTP response in a channel-based communication pipeline.
public interface IChannelResponseHandler
type IChannelResponseHandler = interface
Public Interface IChannelResponseHandler
Remarks
Implementations of this interface can perform custom processing at different stages of the HTTP response, such as initialization, activity handling, and finalization. These methods are typically called in sequence to allow for extensibility and integration with channel-specific logic.
Methods
| Name | Description |
|---|---|
| OnResponse(HttpResponse, IActivity, CancellationToken) |
Handles the HTTP response associated with the specified activity. |
| ResponseBegin(HttpResponse, CancellationToken) |
Initiates the process of sending the HTTP response to the client asynchronously. |
| ResponseEnd(HttpResponse, Object, CancellationToken) |
Writes the specified data to the HTTP response and completes the response asynchronously. |