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

Filters won't work on webapi #92

Open
doruxan opened this issue Oct 19, 2021 · 0 comments
Open

Filters won't work on webapi #92

doruxan opened this issue Oct 19, 2021 · 0 comments

Comments

@doruxan
Copy link

doruxan commented Oct 19, 2021

I have a filter derived from IActionFilter. I tried to register it with MvcOptions on AddWebApi extension But the filter methods didn't hit.

services .AddConvey() .AddWebApi(builder => { builder.AddMvcOptions(opt => { opt.Filters.Add<MyIActionFilter>(); }); }) .AddHttpClient() .Build();

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

No branches or pull requests

1 participant