public IMessageConsumerScope Connect(MessageScopeSettings messageScopeSettings) { var mqConsumerScope = Open(messageScopeSettings); mqConsumerScope.MessageConsumer.Connect(); return(mqConsumerScope); }
public MessageConsumerScope(IConnectionFactory connectionFactory, MessageScopeSettings messageScopeSettings) { _connectionFactory = connectionFactory; _messageScopeSettings = messageScopeSettings; _messageQueueLazy = new Lazy <IMessageQueue>(CreateMessageQueue); _messageConsumerLazy = new Lazy <IMessageConsumer>(CreateMessageConsumer); }
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)); }
public IMessageProducerScope Open(MessageScopeSettings messageScopeSettings) { var _mqProducerScopeRun = new MessageProducerScope(_connectionFactory, messageScopeSettings); return(_mqProducerScopeRun); }