Esempio n. 1
0
        protected override DoNext performInvoke()
        {
            var input  = _request.Find <TInput>().Single();
            var output = _action(_handler, input);

            _messages.EnqueueCascading(output);

            return(DoNext.Continue);
        }
Esempio n. 2
0
        public void Push <T>(Task <T> task)
        {
            _messages.Add(() => _context.EnqueueCascading(task.Result));

            _tasks.Add(task);
        }
Esempio n. 3
0
 public static Task CascadeAsync <T>(Task <T> task, IInvocationContext context)
 {
     return(task.ContinueWith(t => context.EnqueueCascading(t.Result), TaskContinuationOptions.NotOnFaulted));
 }