-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Open
Labels
api-approvedAPI was approved in API review, it can be implementedAPI was approved in API review, it can be implementedarea-middlewareIncludes: URL rewrite, redirect, response cache/compression, session, and other general middlewaresIncludes: URL rewrite, redirect, response cache/compression, session, and other general middlewareshelp candidateIndicates that the issues may be a good fit for community to help with. Requires work from eng. teamIndicates that the issues may be a good fit for community to help with. Requires work from eng. team
Milestone
Description
Is there an existing issue for this?
- I have searched the existing issues
Is your feature request related to a problem? Please describe the problem.
The short circuit feature only has extension methods for adding the required metadata to endpoints. Should there be an attribute? That would allow MVC actions and gRPC methods to support short circuiting.
For example,
public class MonitoringController
{
[ShortCircuit]
[HttpGet("/status")]
public ActionResult GetStatus()
{
// ...
}
}
Brought up in YouTube video: https://youtu.be/rXdwX2X4-gw?t=422
Note that a short-circuited MVC action would still execute filters, and a gRPC method would still execute interceptors.
Describe the solution you'd like
- Change internal
ShortCircuitMetadata
to an interface. (optional) - Change current metadata to an attribute and make public (implement the interface if present)
Additional context
No response
davidfowl and Porozhniakov
Metadata
Metadata
Assignees
Labels
api-approvedAPI was approved in API review, it can be implementedAPI was approved in API review, it can be implementedarea-middlewareIncludes: URL rewrite, redirect, response cache/compression, session, and other general middlewaresIncludes: URL rewrite, redirect, response cache/compression, session, and other general middlewareshelp candidateIndicates that the issues may be a good fit for community to help with. Requires work from eng. teamIndicates that the issues may be a good fit for community to help with. Requires work from eng. team