Topic: AspNetCore. How in Middleware to learn presence of the filter from a caused method?
It is necessary for me in Middleware to check presence IAllowAnonimous of the filter at caused . How it can be made?
_httpContextAccessor.HttpContext.Features.Get< IAllowAnonimous> ()
But there it did not appear for some reason. Also thought to quit on it through
_httpContextAccessor.HttpContext.Features.Get< IHttpAuthenticationFeature> ()
With subsequent searches in this list, but also did not find.
How it can be solved?