示例#1
0
        public async Task <TResult> SendAsync <TResult>(IQuery <TResult> query, CancellationToken cancellationToken = default)
        {
            var basicProperties = _model.CreateBasicProperties();

            basicProperties.Headers = new Dictionary <string, object>();

            return(await _rabbitSender.SendAsync(query, basicProperties, cancellationToken));
        }
示例#2
0
 public async Task <TResult> SendAsync <TResult>(IQuery <TResult> query, IBasicProperties basicProperties, CancellationToken cancellationToken = default)
 {
     UpdateCorrelation(basicProperties);
     return(await _next.SendAsync(query, basicProperties, cancellationToken));
 }