public RabbitMqSubscriptionBinder(IServiceBus bus) { _bindings = new Dictionary<Guid, MessageName>(); _inboundTransport = bus.Endpoint.InboundTransport as InboundRabbitMqTransport; if (_inboundTransport == null) throw new ConfigurationException( "The bus must be receiving from a RabbitMQ endpoint for this interceptor to work"); _inputAddress = _inboundTransport.Address.CastAs<IRabbitMqEndpointAddress>(); _messageNameFormatter = _inboundTransport.MessageNameFormatter; }
public PublishEndpointInterceptor(IServiceBus bus) { _bus = bus; _inboundTransport = _bus.Endpoint.InboundTransport as InboundRabbitMqTransport; if (_inboundTransport == null) { throw new ConfigurationException("The bus must be receiving from a RabbitMQ endpoint for this interceptor to work"); } _address = _inboundTransport.Address.CastAs <IRabbitMqEndpointAddress>(); _added = new Dictionary <Type, UnsubscribeAction>(); }
public RabbitMqSubscriptionBinder(IServiceBus bus) { _bindings = new Dictionary <Guid, MessageName>(); _inboundTransport = bus.Endpoint.InboundTransport as InboundRabbitMqTransport; if (_inboundTransport == null) { throw new ConfigurationException( "The bus must be receiving from a RabbitMQ endpoint for this interceptor to work"); } _inputAddress = _inboundTransport.Address.CastAs <IRabbitMqEndpointAddress>(); _messageNameFormatter = _inboundTransport.MessageNameFormatter; }