-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Added InternalServerError and InternalServerError<TValue> to TypedResults #53656
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
Added InternalServerError and InternalServerError<TValue> to TypedResults #53656
Conversation
Thanks for your PR, @onurmicoogullari. Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
@dotnet-policy-service agree |
APIs need to go through API review and have to be approved by the team. You can leave the PR here until the right shape gets approved. |
0312554
to
bfec86b
Compare
f3b76c9
to
e5d093a
Compare
e5d093a
to
21aa0c6
Compare
src/Http/Http.Results/src/Results.cs
Outdated
/// </summary> | ||
/// <param name="exception">The exception to be thrown.</param> | ||
/// <returns>The created <see cref="IResult"/> for the response.</returns> | ||
public static IResult InternalServerError(ExceptionDispatchInfo exception) |
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.
We just approved the API with everything except these ExceptionDispatchInfo
overloads. I know it was our suggestion in the first place, so sorry to give you the runaround.
Thanks for sticking with this as we went through the API review process.
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.
@halter73 No problem at all. Does that mean that you want me to update the PR and remove the ExceptionDispatchInfo
overload and related test coverage?
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.
Yes. Thank you!
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.
Done!
…lts.InternalServerError<TValue>().
…s to avoid Roslyn Analyzer complaint.
21aa0c6
to
e98b366
Compare
Extending TypedResults with InternalServerError
Summary of the changes (Less than 80 chars)
Description
Added
InternalServerError
andInternalServerError<TValue>
toTypedResults
.Fixes #53073