コード例 #1
0
        public InMemoryReceiveContext(Uri inputAddress, InMemoryTransportMessage message, IReceiveObserver observer)
            : base(inputAddress, message.DeliveryCount > 0, observer)
        {
            _body = message.Body;
            _message = message;

            GetOrAddPayload(() => this);
        }
コード例 #2
0
        public InMemoryReceiveContext(Uri inputAddress, InMemoryTransportMessage message, IReceiveObserver observer, ISendEndpointProvider sendEndpointProvider,
            IPublishEndpointProvider publishEndpointProvider)
            : base(inputAddress, message.DeliveryCount > 0, observer, sendEndpointProvider, publishEndpointProvider)
        {
            _body = message.Body;
            _message = message;

            GetOrAddPayload(() => this);
        }