你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

StatusCodeClassifier Class

Definition

This type inherits from ResponseClassifier and is designed to work efficiently with classifier customizations specified in RequestContext.

public class StatusCodeClassifier : Azure.Core.ResponseClassifier
type StatusCodeClassifier = class
    inherit ResponseClassifier
Public Class StatusCodeClassifier
Inherits ResponseClassifier
Inheritance
StatusCodeClassifier

Constructors

StatusCodeClassifier(ReadOnlySpan<UInt16>)

Creates a new instance of StatusCodeClassifier

Methods

IsErrorResponse(HttpMessage)

Specifies if the response contained in the message is not successful.

IsRetriable(HttpMessage, Exception)

Specifies if the operation that caused the exception should be retried taking the HttpMessage into consideration.

(Inherited from ResponseClassifier)
IsRetriableException(Exception)

Specifies if the operation that caused the exception should be retried.

(Inherited from ResponseClassifier)
IsRetriableResponse(HttpMessage)

Specifies if the request contained in the message should be retried.

(Inherited from ResponseClassifier)

Applies to