示例#1
0
        public static void CreateExchangesAndQueues(string exchangeName, string queueName, string routingKey)
        {
            var customRouteData = new RouteSetupData
            {
                RouteFinder       = new ConstantRouteFinder(exchangeName, queueName, routingKey),
                ExchangeSetupData = new ExchangeSetupData(),
                QueueSetupData    = new QueueSetupData
                {
                    MessageTimeToLive = 100000
                },
                SubscriptionName = SubscriptionName
            };

            var setup = new RabbitSetup(_connectionString);

            setup.CreateRoute <Bunny>(customRouteData);
        }
示例#2
0
        public static void CreateExchangesAndQueues()
        {
            var setup = new RabbitSetup(_connectionString);

            setup.CreateRoute <Bunny>(RouteSetupData);
        }
示例#3
0
 public static void CreateExchangesAndQueues()
 {
     setup.CreateRoute <Bunny>(RouteSetupData);
 }