public async Task<RequestResultState> ExecuteRequestAsync(Request currentRequest)
 {
     FailToken token = new FailToken();
     if (FindOneAction)
     {
         currentRequest.ResolvedActions = new List<ResolvedAction>() {new ResolvedAction()};
     }
     return token.Fail ? RequestResultState.Failed : RequestResultState.Success;
 }
 public override IList<ResolvedAction> GetResolvedActionsForPidAndEvent(Request request)
 {
     if (ShouldFail != null)
     {
         FailToken token = new FailToken();
         ShouldFail(request, token);
         if (token.Fail)
         {
             return null;
         }
     }
     return new List<ResolvedAction>() {new ResolvedAction()};
 }
        public async Task <RequestResultState> ExecuteRequestAsync(Request currentRequest)
        {
            FailToken token = new FailToken();

            if (FindOneAction)
            {
                currentRequest.ResolvedActions = new List <ResolvedAction>()
                {
                    new ResolvedAction()
                };
            }
            return(token.Fail ? RequestResultState.Failed : RequestResultState.Success);
        }
 public override IList <ResolvedAction> GetResolvedActionsForPidAndEvent(Request request)
 {
     if (ShouldFail != null)
     {
         FailToken token = new FailToken();
         ShouldFail(request, token);
         if (token.Fail)
         {
             return(null);
         }
     }
     return(new List <ResolvedAction>()
     {
         new ResolvedAction()
     });
 }