-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Make Result types constructors public #40802
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
Comments
Thank you for submitting this for API review. This will be reviewed by @dotnet/aspnet-api-review at the next meeting of the ASP.NET Core API Review group. Please ensure you take a look at the API review process documentation and ensure that:
|
API Review:
|
@halter73 for those two types: public class NoContentHttpResult : IResult
{
+ public static NoContentHttpResult Instance { get; } = new();
}
public class UnauthorizedHttpResult : IResult
{
+ public static UnauthorizedHttpResult Instance { get; } = new();
} Should they have the |
If we decide to add constructors to any of these types, I think every one of them should have at least one constructor even if there's an equivalent My thinking is we should get rid of the public |
Also the non typed ones. I guess I wasn't clear but I expected us to change the existing impl to cache. |
API Review: On second thought, we think the |
Background and Motivation
Result types were changed to be public but was decided to keep
ctors
internal to have a better design discussion.The original proposal is described in #40656
Proposed API
The text was updated successfully, but these errors were encountered: