Skip to content

Instantly share code, notes, and snippets.

@christopherhouse
Created July 12, 2013 18:09
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/5986510 to your computer and use it in GitHub Desktop.
Save christopherhouse/5986510 to your computer and use it in GitHub Desktop.
public abstract class BaseHttpModule : IHttpModule
{
public void Init(HttpApplication application)
{
application.BeginRequest += (sender, args) =>
OnBeginRequest(new HttpContextWrapper(((HttpApplication)sender).Context));
}
public virtual void OnBeginRequest(HttpContextBase context)
{
}
public virtual void Dispose()
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment