publicize 2 events on UmbracoModule

This commit is contained in:
Shannon
2016-11-18 13:48:18 +01:00
parent 8ba6cb3abf
commit 93ee850bcc
6 changed files with 13 additions and 11 deletions

View File

@@ -524,9 +524,9 @@ namespace Umbraco.Web
"Total milliseconds for umbraco request to process: {0}", () => DateTime.Now.Subtract(UmbracoContext.Current.ObjectCreated).TotalMilliseconds);
}
OnEndRequest(new EventArgs());
OnEndRequest(new UmbracoRequestEventArgs(UmbracoContext.Current, new HttpContextWrapper(httpContext)));
DisposeHttpContextItems(httpContext);
DisposeHttpContextItems(httpContext);
};
}
@@ -536,18 +536,19 @@ namespace Umbraco.Web
}
#endregion
#endregion
#region Events
internal static event EventHandler<RoutableAttemptEventArgs> RouteAttempt;
public static event EventHandler<RoutableAttemptEventArgs> RouteAttempt;
private void OnRouteAttempt(RoutableAttemptEventArgs args)
{
if (RouteAttempt != null)
RouteAttempt(this, args);
}
internal static event EventHandler<EventArgs> EndRequest;
private void OnEndRequest(EventArgs args)
public static event EventHandler<UmbracoRequestEventArgs> EndRequest;
private void OnEndRequest(UmbracoRequestEventArgs args)
{
if (EndRequest != null)
EndRequest(this, args);