IChannelResponseHandler Interface

Definition

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.

Applies to