Exemplo n.º 1
0
 /// <summary>
 ///   Processes the specified arguments.
 /// </summary>
 /// <param name="args">The arguments.</param>
 public override void Process(ActionExecutedArgs args)
 {
     if (args.Context.Controller is FormController)
       {
     new AddJsToActionResultFilterAttribute().OnActionExecuted(args.Context);
       }
 }
Exemplo n.º 2
0
 /// <summary>
 ///   Processes the specified arguments.
 /// </summary>
 /// <param name="args">The arguments.</param>
 public override void Process(ActionExecutedArgs args)
 {
     if (args.Context.Controller is FormController)
     {
         new AddJsToActionResultFilterAttribute().OnActionExecuted(args.Context);
     }
 }
Exemplo n.º 3
0
        private void Bot_ActionExecuted(object sender, ActionExecutedArgs args)
        {
            int index = this.dc.FlagActionAs(args.LastAction, ExecutionState.Executed);

            UpdateRobotStatus();

            //ScrollQueueToElement(index);
        }
 public override void Process(ActionExecutedArgs args)
 {
     if (RequestExtensions.IsContextRequestForDynamicData())
     {
         // no cache for dynamic data
         args.Context.RequestContext.HttpContext.Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache);
     }
     else
     {
         // all pages are cached for 1 minute
         args.Context.RequestContext.HttpContext.Response.Cache.SetCacheability(System.Web.HttpCacheability.Public);
         args.Context.RequestContext.HttpContext.Response.Cache.SetMaxAge(TimeSpan.FromMinutes(1));
     }
 }
        private void Bot_ActionExecuted(object sender, ActionExecutedArgs args)
        {
            int index = this.dc.FlagActionAs(args.LastAction, ExecutionState.Executed);

            // Couldn't figure out a good way to remove old executed actions but maintain good auto scrolling
            // at the same time; stupid difference between the dispatcher and the UI thread...
            //uiContext.Post(x =>
            //{
            //    dc.CheckMaxExecutedActions();
            //}, null);

            if (dc.queueFollowPointer)
            {
                ScrollQueueToElement(index);
            }

            UpdateRobotStatus();
        }