public IMessageConsumerScope Connect(MessageScopeSettings messageScopeSettings)
        {
            var mqConsumerScope = Open(messageScopeSettings);

            mqConsumerScope.MessageConsumer.Connect();
            return(mqConsumerScope);
        }
Ejemplo n.º 2
0
 public MessageConsumerScope(IConnectionFactory connectionFactory, MessageScopeSettings messageScopeSettings)
 {
     _connectionFactory    = connectionFactory;
     _messageScopeSettings = messageScopeSettings;
     _messageQueueLazy     = new Lazy <IMessageQueue>(CreateMessageQueue);
     _messageConsumerLazy  = new Lazy <IMessageConsumer>(CreateMessageConsumer);
 }
Ejemplo n.º 3
0
        public IMessageConsumerScope Open(MessageScopeSettings messageScopeSettings)
        {
            var _mqConsumerScopeRun = new MessageConsumerScope(_connectionFactory, messageScopeSettings);

            _mqConsumerScopeRun.MessageConsumer.Connect();
            return(_mqConsumerScopeRun);
        }
 public MessageQueue(IConnectionFactory connectionFactory, MessageScopeSettings messageScopeSettings) : this(connectionFactory)
 {
     DeclareExchange(messageScopeSettings.ExchangeName, messageScopeSettings.ExhangeType);
     if (messageScopeSettings.QueueName != null)
     {
         BindQueue(messageScopeSettings.ExchangeName, messageScopeSettings.RoutingKey, messageScopeSettings.QueueName);
     }
 }
 public IMessageProducerScope Open(MessageScopeSettings messageScopeSettings)
 {
     return(new MessageProducerScope(_connectionFactory, messageScopeSettings));
 }
Ejemplo n.º 6
0
        public IMessageProducerScope Open(MessageScopeSettings messageScopeSettings)
        {
            var _mqProducerScopeRun = new MessageProducerScope(_connectionFactory, messageScopeSettings);

            return(_mqProducerScopeRun);
        }