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)); }
public async Task <TResult> SendAsync <TResult>(IQuery <TResult> query, IBasicProperties basicProperties, CancellationToken cancellationToken = default) { UpdateCorrelation(basicProperties); return(await _next.SendAsync(query, basicProperties, cancellationToken)); }