Пример #1
0
        public Task Send(string exchangeName, InMemoryTransportMessage message)
        {
            var exchange = new InMemoryExchange(exchangeName);

            var deliveryContext = new InMemoryDeliveryContext(message);

            return(exchange.Deliver(deliveryContext));
        }
Пример #2
0
        public Task Send(InMemoryTransportMessage message)
        {
            var deliveryContext = new InMemoryDeliveryContext(message);

            return(Deliver(deliveryContext));
        }
Пример #3
0
        public Task Send(InMemoryTransportMessage message, CancellationToken cancellationToken)
        {
            var deliveryContext = new InMemoryDeliveryContext(message, cancellationToken);

            return(Deliver(deliveryContext));
        }