public IMessageTopology Build(IEndpoint endpoint)
        {
            var messageTopology = new MessageTopology();

            messageTopology.PublishExchange = messageTopology.DefineExchange(endpoint.MessageType, ExchangeType.Topic);
            return(messageTopology);
        }
        public IMessageTopology Build(IEndpoint endpoint)
        {
            var topology = new MessageTopology();
            topology.PublishExchange = topology.DefineExchange(endpoint.Name, ExchangeType.Topic);

            return topology;
        }
Beispiel #3
0
        public IMessageTopology Build(IEndpoint endpoint)
        {
            var topology = new MessageTopology();

            topology.PublishExchange = topology.DefineExchange(endpoint.Name, ExchangeType.Topic);

            return(topology);
        }
        public IMessageTopology Build(IEndpoint endpoint)
        {
            var topology = new MessageTopology();

            var exchange = topology.DefineExchange(endpoint.MessageType, ExchangeType.Topic);

            // define an additional messages timedout topic exchange
            topology.DefineExchange("messages.timedout", ExchangeType.Topic);
            topology.SubscribeQueue = topology.DefineQueue(endpoint.Name);

            // on the subscription queue we need to specify what the dead letter exchange name is
            topology.SubscribeQueue.DeadLetterExchange = "messages.timedout";
            topology.SubscribeQueue.BindTo(exchange);

            topology.PublishExchange = exchange;

            return(topology);
        }
Beispiel #5
0
        public IMessageTopology Build(IEndpoint endpoint)
        {
            var topology = new MessageTopology();

            var exchange = topology.DefineExchange(endpoint.MessageType, ExchangeType.Topic);

            topology.SubscribeQueue = topology.DefineQueue();
            topology.SubscribeQueue.BindTo(exchange);

            topology.PublishExchange = exchange;

            return(topology);
        }
            public IMessageTopology Build(IEndpoint endpoint)
            {
                var topology = new MessageTopology();

                var exchange = topology.DefineExchange("exchange-" + endpoint.Name, ExchangeType.Topic);

                topology.SubscribeQueue = topology.DefineQueue(endpoint.Name);
                topology.SubscribeQueue.BindTo(exchange);

                topology.PublishExchange = exchange;

                return topology;
            }
        public IMessageTopology Build(IEndpoint endpoint)
        {
            var topology = new MessageTopology();

            var exchange = topology.DefineExchange("ErrorExchange", ExchangeType.Topic);

            var queue = topology.DefineQueue("ErrorQueue");
            queue.BindTo(exchange);

            topology.PublishExchange = exchange;

            return topology;
        }
        public IMessageTopology Build(IEndpoint endpoint)
        {
            var topology = new MessageTopology();

            var exchange = topology.DefineExchange("ErrorExchange", ExchangeType.Topic);

            var queue = topology.DefineQueue("ErrorQueue");

            queue.BindTo(exchange);

            topology.PublishExchange = exchange;

            return(topology);
        }
Beispiel #9
0
        public IMessageTopology Build(IEndpoint endpoint)
        {
            var topology = new MessageTopology();

            var exchange = topology.DefineExchange("messages.timedout", ExchangeType.Topic);

            var queueName = "Timeouts_" + Guid.NewGuid();

            topology.SubscribeQueue = topology.DefineQueue(queueName);
            topology.SubscribeQueue.IsAutoDelete = true;
            topology.SubscribeQueue.BindTo(exchange, queueName);

            topology.PublishExchange = exchange;

            return(topology);
        }
        public IMessageTopology Build(IEndpoint endpoint)
        {
            var topology = new MessageTopology();

            var exchange = topology.DefineExchange(endpoint.MessageType, ExchangeType.Topic);
            topology.SubscribeQueue = topology.DefineQueue(endpoint.Name);

            if (endpoint.Ordinal == 0)
            {
                topology.SubscribeQueue.BindTo(exchange, routingKey);
            }

            topology.PublishExchange = exchange;

            return topology;
        }
        public IMessageTopology Build(IEndpoint endpoint)
        {
            var topology = new MessageTopology();

            var exchange = topology.DefineExchange("messages.timedout", ExchangeType.Topic);

            var queueName = "Timeouts_" + Guid.NewGuid();

            topology.SubscribeQueue = topology.DefineQueue(queueName);
            topology.SubscribeQueue.IsAutoDelete = true;
            topology.SubscribeQueue.BindTo(exchange, queueName);

            topology.PublishExchange = exchange;

            return topology;
        }
Beispiel #12
0
        public IMessageTopology Build(IEndpoint endpoint)
        {
            var topology = new MessageTopology();

            var exchange = topology.DefineExchange(endpoint.MessageType, ExchangeType.Topic);

            topology.SubscribeQueue = topology.DefineQueue(endpoint.Name);

            if (endpoint.Ordinal == 0)
            {
                topology.SubscribeQueue.BindTo(exchange, routingKey);
            }

            topology.PublishExchange = exchange;

            return(topology);
        }
 public IMessageTopology Build(IEndpoint endpoint)
 {
     var topology = new MessageTopology();
     topology.PublishExchange = topology.DefineExchange(string.Empty, ExchangeType.Direct);
     return topology;
 }
 public IMessageTopology Build(IEndpoint endpoint)
 {
     var messageTopology = new MessageTopology();
     messageTopology.PublishExchange = messageTopology.DefineExchange(endpoint.MessageType, ExchangeType.Topic);
     return messageTopology;
 }