/// <inheritdoc cref="IProducerBehavior.HandleAsync" /> public async Task HandleAsync(ProducerPipelineContext context, ProducerBehaviorHandler next) { Check.NotNull(context, nameof(context)); Check.NotNull(next, nameof(next)); MessageIdProvider.EnsureMessageIdIsInitialized(context.Envelope.Headers); await next(context).ConfigureAwait(false); }
/// <inheritdoc cref="IProducerBehavior.HandleAsync" /> public async Task HandleAsync(ProducerPipelineContext context, ProducerBehaviorHandler next) { Check.NotNull(context, nameof(context)); Check.NotNull(next, nameof(next)); // TODO: Could avoid? Or make it optional (for interop with legacy versions)? MessageIdProvider.EnsureMessageIdIsInitialized(context.Envelope.Headers); await next(context).ConfigureAwait(false); }