Created
July 12, 2013 17:56
-
-
Save christopherhouse/5986403 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyHttpModule : IHttpModule | |
{ | |
public void Init(HttpApplication appliction) | |
{ | |
application.BeginRequest += (sender, eventArgs) => { | |
HttpContext currentContext = (HttpContext)sender; | |
// Do cool stuff here, probably with the currentContext var | |
}; | |
} | |
public void Dispsoe() | |
{ | |
// Dispose of stuff | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment