HeaderEncodingSelector<TContext> Delegate

Definition

Represents a method that specifies the encoding to use when interpreting header values.

public delegate System.Text.Encoding? HeaderEncodingSelector<TContext>(string headerName, TContext context);

Type Parameters

TContext

The type of the headers that are being encoded/decoded.

Parameters

headerName
String

The name of the header to specify for the encoding.

context
TContext

The type we are encoding/decoding the headers for.

Return Value

The encoding to use, or null to use the default behavior.

Extension Methods

GetMethodInfo(Delegate)

Gets an object that represents the method represented by the specified delegate.

Applies to

Product Versions
.NET 5, 6, 7, 8, 9