public override Task Publish <T>(object values, IPipe <PublishContext <T> > publishPipe, CancellationToken cancellationToken)
        {
            Task task = _publishEndpoint.Value.Publish(values, publishPipe, cancellationToken);

            ReceiveContext.AddPendingTask(task);
            return(task);
        }
        public override Task Publish(object message, Type messageType, IPipe <PublishContext> publishPipe, CancellationToken cancellationToken)
        {
            Task task = _publishEndpoint.Value.Publish(message, messageType, publishPipe, cancellationToken);

            ReceiveContext.AddPendingTask(task);
            return(task);
        }
        public override Task Publish <T>(T message, CancellationToken cancellationToken)
        {
            Task task = _publishEndpoint.Value.Publish(message, cancellationToken);

            ReceiveContext.AddPendingTask(task);
            return(task);
        }
예제 #4
0
        public override Task Publish <T>(object values, CancellationToken cancellationToken)
        {
            var task = _publishEndpoint.Value.Publish <T>(values, cancellationToken);

            ReceiveContext.AddPendingTask(task);
            return(task);
        }
예제 #5
0
        public void Respond <T>(T message)
            where T : class
        {
            var task = RespondAsync(message);

            _receiveContext.AddPendingTask(task);
        }
 public virtual void AddPendingTask(Task task)
 {
     _context.AddPendingTask(task);
 }