diff --git a/LightInject.Web/LightInject.Web.cs b/LightInject.Web/LightInject.Web.cs
index 4e53c7e5..aa1c5164 100644
--- a/LightInject.Web/LightInject.Web.cs
+++ b/LightInject.Web/LightInject.Web.cs
@@ -93,8 +93,8 @@ public class LightInjectHttpModule : IHttpModule
/// An that provides access to the methods, properties, and events common to all application objects within an ASP.NET application
public void Init(HttpApplication context)
{
- context.BeginRequest += (s, a) => BeginRequest();
- context.EndRequest += (s, a) => EndRequest();
+ context.BeginRequest += BeginRequest;
+ context.EndRequest += EndRequest;
}
///
@@ -104,13 +104,13 @@ public void Dispose()
{
}
- private static void EndRequest()
+ private static void EndRequest(object sender, System.EventArgs e)
{
var scopeManager = (ScopeManager)HttpContext.Current.Items["ScopeManager"];
scopeManager.CurrentScope.Dispose();
}
- private static void BeginRequest()
+ private static void BeginRequest(object sender, System.EventArgs e)
{
var scopeManager = new ScopeManager();
scopeManager.BeginScope();