public static void RegisterExchange(this IRabbitMqReceiveEndpointConfigurator cfg, string exchange, string routingKey)
 {
     cfg.ConfigureConsumeTopology = false;
     cfg.Bind(exchange, e =>
     {
         e.RoutingKey   = routingKey;
         e.ExchangeType = ExchangeType.Topic;
     });
 }
Beispiel #2
0
        protected override void ConfigureRabbitMqReceiveEndoint(IRabbitMqReceiveEndpointConfigurator configurator)
        {
            _handled = Handled <A>(configurator);

            configurator.Bind(BoundExchange, x =>
            {
                x.Durable      = false;
                x.AutoDelete   = true;
                x.ExchangeType = ExchangeType.Direct;
            });
        }
Beispiel #3
0
        protected override void ConfigureRabbitMqReceiveEndoint(IRabbitMqReceiveEndpointConfigurator configurator)
        {
            _handled = Handled <A>(configurator);

            configurator.Bind(_boundExchange);
        }
Beispiel #4
0
 protected override void ConfigureRabbitMqReceiveEndoint(IRabbitMqReceiveEndpointConfigurator configurator)
 {
     configurator.Bind <PingMessage>();
 }
        protected override void ConfigureInputQueueEndpoint(IRabbitMqReceiveEndpointConfigurator configurator)
        {
            _handled = Handled<A>(configurator);

            configurator.Bind(BoundExchange, x =>
            {
                x.Durable = false;
                x.AutoDelete = true;
                x.ExchangeType = ExchangeType.Direct;
            });
        }
        protected override void ConfigureInputQueueEndpoint(IRabbitMqReceiveEndpointConfigurator configurator)
        {
            _handled = Handled<A>(configurator);

            configurator.Bind(_boundExchange);
        }
Beispiel #7
0
 protected override void ConfigureInputQueueEndpoint(IRabbitMqReceiveEndpointConfigurator configurator)
 {
     configurator.Bind<PingMessage>();
 }