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); }
public static void CreateExchangesAndQueues() { var setup = new RabbitSetup(_connectionString); setup.CreateRoute <Bunny>(RouteSetupData); }
public static void CreateExchangesAndQueues() { setup.CreateRoute <Bunny>(RouteSetupData); }