Skip to content
This repository has been archived by the owner on Feb 6, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant