Exemple #1
0
        /// <inheritdoc cref="IConsumerBehavior.HandleAsync" />
        public Task HandleAsync(ConsumerPipelineContext context, ConsumerBehaviorHandler next)
        {
            Check.NotNull(context, nameof(context));
            Check.NotNull(next, nameof(next));

            if (context.Envelope is IInboundEnvelope inboundEnvelope)
            {
                _integrationSpy.AddInboundEnvelope(inboundEnvelope);
            }

            return(next(context));
        }
 private void OnInbound(IInboundEnvelope envelope) => _integrationSpy.AddInboundEnvelope(envelope);