Beispiel #1
0
        public Task Send(string exchangeName, InMemoryTransportMessage message)
        {
            var exchange = new InMemoryExchange(exchangeName);

            var deliveryContext = new InMemoryDeliveryContext(message);

            return(exchange.Deliver(deliveryContext));
        }
Beispiel #2
0
        public Task Send(InMemoryTransportMessage message)
        {
            var deliveryContext = new InMemoryDeliveryContext(message);

            return(Deliver(deliveryContext));
        }
        public Task Send(InMemoryTransportMessage message, CancellationToken cancellationToken)
        {
            var deliveryContext = new InMemoryDeliveryContext(message, cancellationToken);

            return(Deliver(deliveryContext));
        }