Task IPublishEndpoint.Publish <T>(object values, IPipe <PublishContext <T> > publishPipe, CancellationToken cancellationToken) { var contextPipe = new ConsumeContextScopePublishContextPipe <T>(publishPipe, _context); return(_publishEndpoint.Publish(values, contextPipe, cancellationToken)); }
Task IPublishEndpoint.Publish <T>(T message, IPipe <PublishContext> publishPipe, CancellationToken cancellationToken) { var contextPipe = new ConsumeContextScopePublishContextPipe <T>(publishPipe, _context); return(_publishEndpoint.Publish(message, contextPipe, cancellationToken)); }