コード例 #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));
        }
コード例 #2
0
 private void OnInbound(IInboundEnvelope envelope) => _integrationSpy.AddInboundEnvelope(envelope);