/// <summary>
        /// Execute the action, hold the result, and potentially respond.
        /// </summary>
        protected override void RunAction()
        {
            Result = Action(ConditionParam);

            if (!ReferenceEquals(null, ResultFilter) && ResultFilter.Equals(Result))
            {
                Response();
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Execute the action, hold the result, and potentially respond.
        /// </summary>
        protected override void RunAction()
        {
            Result = Action(CancellationToken);

            if (!CancellationToken.IsCancellationRequested && ResultFilter != null && ResultFilter.Equals(Result))
            {
                Response();
            }
        }