<PackageReference Include="Azure.Core" Version="1.47.2" />

ChainingClassifier

Implements chaining of classifiers for the general case where the end-of-chain ResponseClassifier is not a StatusCodeClassifier. StatusCodeClassifier is preferred due to its enhanced performance characteristics. The classifier chain is a series of ResponseClassificationHandler classifiers followed by the "end-of-chain" ResponseClassifier. The handlers are added to the chain via RequestContext, and all of them are applied starting with the most recently added handler and iterating over the list to the least-recently added handler, then applying status code classification, and finally by applying the "end-of-chain" classifier.
public ChainingClassifier(ValueTuple<int, bool>[] statusCodes, ResponseClassificationHandler[] handlers, ResponseClassifier endOfChain)