Skip to content

Detecting when attributes are put on a method called by a lambda instead of the lambda itself #35638

@captainsafia

Description

@captainsafia
app.Map("/", () => Hello());
[Authorize]
void Hello() { }  

should produce an analyzer warning

Metadata

Metadata

Assignees

Labels

Priority:2Work that is important, but not critical for the releasearea-minimalIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcfeature-minimal-actionsController-like actions for endpoint routingold-area-web-frameworks-do-not-use*DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions