HttpModule only on specific MVC route
问题 I have a custom IHttpModule that I would like to only work on a specific route. For example : http://example.com/HandleAzureTask I want this module to only be invoked/handled on the /HandleAzureTask route. Since this is not a controller, I can't really set the [Authorize] attribute on it; how can I force it only to be invoked/handled if user is authenticated? I am on ASP.NET MVC 4 and currently have my module added to web.config as such: <modules> <remove name="AzureWebDAVModule" /> <add name