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,
     };
 }
Esempio n. 3
0
 public virtual void OnAfterActionMethod(
     IProxyActionContext actionContext,
     IProxyActionResult result)
 {
     AfterActionMethod = new OnAfterActionMethodEventData()
     {
         ActionContext = actionContext,
         Result = result,
     };
 }
Esempio n. 4
0
 public virtual void OnBeforeActionMethod(
     IProxyActionContext actionContext,
     IReadOnlyDictionary<string, object> arguments)
 {
     BeforeActionMethod = new OnBeforeActionMethodEventData()
     {
         ActionContext = actionContext,
         Arguments = arguments,
     };
 }
Esempio n. 5
0
 public virtual void OnViewResultViewFound(
     IProxyActionContext actionContext,
     IProxyActionResult result,
     string viewName,
     IProxyView view)
 {
     ViewResultViewFound = new OnViewResultViewFoundEventData()
     {
         ActionContext = actionContext,
         Result        = result,
         ViewName      = viewName,
         View          = view,
     };
 }
Esempio n. 6
0
 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 OnViewResultViewFound(
     IProxyActionContext actionContext,
     IProxyActionResult result,
     string viewName,
     IProxyView view)
 {
     ViewResultViewFound = new OnViewResultViewFoundEventData()
     {
         ActionContext = actionContext,
         Result = result,
         ViewName = viewName,
         View = view,
     };
 }
Esempio n. 8
0
 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,
     };
 }
Esempio n. 9
0
 public virtual void OnBeforeActionResult(IProxyActionContext actionContext, IProxyActionResult result)
 {
     BeforeActionResult = new OnBeforeActionResultEventData()
     {
         ActionContext = actionContext,
         Result = result,
     };
 }
Esempio n. 10
0
 public virtual void BeforeOnResourceExecution(IProxyActionContext resourceExecutingContext, IProxyActionDescriptor actionDescriptor)
 {
     resourceExecutingContext?.HttpContext?.Features.Get <ActionMetric>()?.StartRequestExecution(actionDescriptor);
 }
Esempio n. 11
0
 public virtual void AfterOnResourceExecuted(IProxyActionContext resourceExecutedContext, IProxyActionDescriptor actionDescriptor)
 {
     resourceExecutedContext?.HttpContext?.Features.Get <ActionMetric>()?.StopRequestExecution();
 }
Esempio n. 12
0
 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();
 }