Table of Contents

ProcessAsync Method

Definition

ProcessAsync(HttpContext, Stream)

Called asynchronously before the bodyStream is conditionally written to the response.

Task ProcessAsync(HttpContext context, Stream bodyStream)

Parameters

context HttpContext

The HttpContext of the current request.

bodyStream Stream

The intercepted Stream of the response body.

Returns

Task

A Task that represents the execution of this validator.

Remarks

bodyStream is written to the response body if condition is not equal to a 304 status code.