public virtual void OnAfterActionResult(IProxyActionContext actionContext, IProxyActionResult result) { AfterActionResult = new OnAfterActionResultEventData() { ActionContext = actionContext, Result = result, }; }
public virtual void OnBeforeActionMethod( IProxyActionContext actionContext, IReadOnlyDictionary <string, object> arguments) { BeforeActionMethod = new OnBeforeActionMethodEventData() { ActionContext = actionContext, Arguments = arguments, }; }
public virtual void OnAfterActionMethod( IProxyActionContext actionContext, IProxyActionResult result) { AfterActionMethod = new OnAfterActionMethodEventData() { ActionContext = actionContext, Result = result, }; }
public virtual void OnBeforeActionMethod( IProxyActionContext actionContext, IReadOnlyDictionary<string, object> arguments) { BeforeActionMethod = new OnBeforeActionMethodEventData() { ActionContext = actionContext, Arguments = arguments, }; }
public virtual void OnViewResultViewFound( IProxyActionContext actionContext, IProxyActionResult result, string viewName, IProxyView view) { ViewResultViewFound = new OnViewResultViewFoundEventData() { ActionContext = actionContext, Result = result, ViewName = viewName, View = view, }; }
public virtual void OnViewResultViewNotFound( IProxyActionContext actionContext, IProxyActionResult result, string viewName, IEnumerable <string> searchedLocations) { ViewResultViewNotFound = new OnViewResultViewNotFoundEventData() { ActionContext = actionContext, Result = result, ViewName = viewName, SearchedLocations = searchedLocations, }; }
public virtual void OnViewNotFound( IProxyActionContext actionContext, bool isMainPage, IProxyActionResult result, string viewName, IEnumerable<string> searchedLocations) { ViewNotFound = new OnViewNotFoundEventData() { ActionContext = actionContext, IsMainPage = isMainPage, Result = result, ViewName = viewName, SearchedLocations = searchedLocations, }; }
public virtual void OnBeforeActionResult(IProxyActionContext actionContext, IProxyActionResult result) { BeforeActionResult = new OnBeforeActionResultEventData() { ActionContext = actionContext, Result = result, }; }
public virtual void BeforeOnResourceExecution(IProxyActionContext resourceExecutingContext, IProxyActionDescriptor actionDescriptor) { resourceExecutingContext?.HttpContext?.Features.Get <ActionMetric>()?.StartRequestExecution(actionDescriptor); }
public virtual void AfterOnResourceExecuted(IProxyActionContext resourceExecutedContext, IProxyActionDescriptor actionDescriptor) { resourceExecutedContext?.HttpContext?.Features.Get <ActionMetric>()?.StopRequestExecution(); }
public virtual void AfterOnAuthorization(IProxyActionContext actionContext, IProxyActionDescriptor actionDescriptor) { actionContext?.HttpContext?.Features.Get <ActionMetric>()?.StopRequestAuthorization(); }
public virtual void BeforeOnAuthorization(IProxyActionContext actionContext, IProxyActionDescriptor actionDescriptor) { actionContext?.HttpContext?.Features.Get <RequestMetric>()?.StartRequestAuthorization(); }