Skip to content

Instantly share code, notes, and snippets.

@christopherhouse
Created July 12, 2013 17:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christopherhouse/5986403 to your computer and use it in GitHub Desktop.
Save christopherhouse/5986403 to your computer and use it in GitHub Desktop.
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