From 0c8727cd24b2ecc7e4ebbe355f8aaf92490f5784 Mon Sep 17 00:00:00 2001 From: Dmitry Afanasiev Date: Fri, 19 Sep 2014 13:56:57 +0400 Subject: [PATCH] Unnecessary auto generated (from lambdas) compiler stubs were removed. --- LightInject.Web/LightInject.Web.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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();