-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update DPG ResponseClassifiers #2023
Update DPG ResponseClassifiers #2023
Conversation
private sealed class ResponseClassifier200To300400To500Override : ResponseClassifier | ||
{ | ||
private static ResponseClassifier _instance; | ||
public static ResponseClassifier Instance => _instance ??= new ResponseClassifier200To300400To500(); | ||
public override bool IsErrorResponse(HttpMessage message) | ||
{ | ||
return message.Response.Status switch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is the generated code for ResponseClassifier200To300400To500
based on #2006 (comment)
private static ResponseClassifier _responseClassifier200; | ||
private static ResponseClassifier ResponseClassifier200 => _responseClassifier200 ??= new CoreResponseClassifier(stackalloc int[] { 200 }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is the generated code for ResponseClassifier200
based on #2006 (comment)
src/AutoRest.CSharp/LowLevel/Generation/LowLevelClientWriter.cs
Outdated
Show resolved
Hide resolved
Reason for this PR failure - #2025 (comment) |
test/TestServerProjectsLowLevel/head/Generated/HttpSuccessClient.cs
Outdated
Show resolved
Hide resolved
Once Azure/azure-sdk-for-net#27379 merges, we will need to change the CoreResponseClassifier name to StatusCodeClassifier. Probably better to hold this until that happens. |
…into ResponseClassifier
…into ResponseClassifier
Fixes: #2006