Accessing ApiController Type in DelegatingHandler
问题 I am using Asp.Net WebAPI for a project. I am currently working on authentication and authorization. I have a messageHandler that will check the HTTP authentication header of a request and build my identity and user profile. However, I want to annotate my controller action (or just the controller) with claims that the action may require (we have a lot of claims that a user can have, so I don't want to load them all). e.g.: public class MyController : ApiController { [LoadClaims("SomeClaim",