Beispiel #1
0
        public Task <string[]> Handle(GetMethodsForQueueNameRequest queueNameRequest)
        {
            Expression <Func <SqlCommonDbOddJobMetaData, bool> > expr = null;
            var results = new string[] { null };

            if (!string.IsNullOrWhiteSpace(queueNameRequest.QueueName))
            {
                expr = ExpressionHelpers.CombineBinaryExpression(expr,
                                                                 (a) => a.QueueName.ToLower().Contains(queueNameRequest.QueueName.ToLower()), false);
                results = results.Concat(_provider.GetJobCriteriaByCriteria(expr, q => q.MethodName)).ToArray();
            }


            return(Task.FromResult(results));
        }
Beispiel #2
0
 public Task <string[]> Handle(GetMethodsForQueueNameRequest command)
 {
     return(_methodHandlerImpl.Handle(command));
 }