publicize 2 events on UmbracoModule
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user