PipelineMessageClassifier Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public abstract class PipelineMessageClassifier
type PipelineMessageClassifier = class
Public MustInherit Class PipelineMessageClassifier
- Inheritance
-
PipelineMessageClassifier
Constructors
PipelineMessageClassifier() |
Properties
Default |
A default classifier instance. This classifier will classify a
PipelineResponse with a status code of |
Methods
Create(ReadOnlySpan<UInt16>) |
Create an instance of a PipelineMessageClassifier from a collection of success status codes. |
TryClassify(PipelineMessage, Boolean) |
Attempt to evaluate whether the provided PipelineMessage contains a Response that the client should consider an error response. |
TryClassify(PipelineMessage, Exception, Boolean) |
Attempt to evaluate whether the provided PipelineMessage contains a Response that indicates the client should retry the Request. |
Applies to
Azure SDK for .NET