コード例 #1
0
        /// <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);
        }
コード例 #2
0
        /// <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);
        }