Skip to content
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

Fix S2094 FP: Allow to have empty classes, used as generic parameter #6910

Closed
sm-g opened this issue Mar 12, 2023 · 0 comments · Fixed by #6926
Closed

Fix S2094 FP: Allow to have empty classes, used as generic parameter #6910

sm-g opened this issue Mar 12, 2023 · 0 comments · Fixed by #6926
Assignees
Milestone

Comments

@sm-g
Copy link

sm-g commented Mar 12, 2023

I have class

using Microsoft.AspNetCore.Authorization;

public class TokenRequirement : IAuthorizationRequirement
{
}

and later use it:

TokenRequirementHandler : AuthorizationHandler<TokenRequirement>

Note: usage could be in other csproj, i.e. for StringLocalizer we have separate csproj for Resources with defined empty classes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants