-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
Add ShortCircuitAttribute #52571
Add ShortCircuitAttribute #52571
Conversation
Thanks for your PR, @fvoronin. Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
@@ -3,7 +3,7 @@ | |||
|
|||
namespace Microsoft.AspNetCore.Routing.ShortCircuit; | |||
|
|||
internal sealed class ShortCircuitMetadata | |||
internal sealed class ShortCircuitMetadata : IShortCircuitMetadata |
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.
There' no need for IShortCircuitMetadata
interface. Since ShortCircuitMetadata
is internal, I suggest to remove both IShortCircuitMetadata
and ShortCircuitMetadata
and only have ShortCircuitAttribute
and update the middleware to work with the new attribute.
/// <summary> | ||
/// Constructs an instance of <see cref="ShortCircuitAttribute"/>. | ||
/// </summary> | ||
public ShortCircuitAttribute() { } |
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.
You can remove this.
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.
Had to leave it, because the internal constructor is now present.
@fvoronin Thanks for opening this PR! Since this introduces new API, it'll need to go through API review. I've marked the associated issue with |
@fvoronin Looks like the API was approved in review. Can you please fix the merge conflict and ensure the public API matches what's here: #49181 (comment) |
Sorry, yes, of course. Please give me a couple of days. |
Hello. I see that you've just added |
I asked a question in the original issue (#49181 (comment)), but no activity there yet. |
Fixes #49181