System.ClientModel.Primitives.PipelineMessageClassifier
A classifier that can evaluate a PipelineMessage in two ways.
First, given an HTTP message, the PipelineMessageClassifier
can determine whether the service response it holds should be considered an
error response. Second, given an HTTP message and an optional pipeline
exception, the classifier can determine whether or not the
ClientPipeline should retry the request.
namespace System.ClientModel.Primitives
{
public class ApiKeyAuthenticationPolicy : AuthenticationPolicy
{
public static ApiKeyAuthenticationPolicy CreateHeaderApiKeyPolicy(ApiKeyCredential credential, string headerName, string keyPrefix = null);
public static ApiKeyAuthenticationPolicy CreateBasicAuthorizationPolicy(ApiKeyCredential credential);
public static ApiKeyAuthenticationPolicy CreateBearerAuthorizationPolicy(ApiKeyCredential credential);
}
}