Пример #1
0
 public virtual void OnAfterActionResult(IProxyActionContext actionContext, IProxyActionResult result)
 {
     AfterActionResult = new OnAfterActionResultEventData()
     {
         ActionContext = actionContext,
         Result        = result,
     };
 }
Пример #2
0
 public virtual void OnAfterActionMethod(
     IProxyActionContext actionContext,
     IProxyActionResult result)
 {
     AfterActionMethod = new OnAfterActionMethodEventData()
     {
         ActionContext = actionContext,
         Result = result,
     };
 }
Пример #3
0
 public virtual void OnViewResultViewFound(
     IProxyActionContext actionContext,
     IProxyActionResult result,
     string viewName,
     IProxyView view)
 {
     ViewResultViewFound = new OnViewResultViewFoundEventData()
     {
         ActionContext = actionContext,
         Result        = result,
         ViewName      = viewName,
         View          = view,
     };
 }
Пример #4
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,
     };
 }
Пример #6
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,
     };
 }
Пример #7
0
 public virtual void OnBeforeActionResult(IProxyActionContext actionContext, IProxyActionResult result)
 {
     BeforeActionResult = new OnBeforeActionResultEventData()
     {
         ActionContext = actionContext,
         Result = result,
     };
 }