public ApplicationMessageSubscriber(
     IMessageQueueConsumerFactory queueConsumerFactory,
     IMessageSubscriptionManager subscriptionManager,
     IApplicationMessageProcessor processor,
     ILogger <ApplicationMessageSubscriber> logger,
     VoguediOptions options)
     : base(queueConsumerFactory, subscriptionManager, processor, logger, options.DefaultApplicationMessageGroupName, options.DefaultApplicationTopicQueueCount)
 {
 }
Example #2
0
 public EventSubscriber(
     IMessageQueueConsumerFactory queueConsumerFactory,
     IMessageSubscriptionManager subscriptionManager,
     IEventProcessor processor,
     ILogger <EventSubscriber> logger,
     VoguediOptions options)
     : base(queueConsumerFactory, subscriptionManager, processor, logger, options.DefaultEventGroupName, options.DefaultEventTopicQueueCount)
 {
 }
Example #3
0
 public CommandSubscriber(
     IMessageQueueConsumerFactory queueConsumerFactory,
     IMessageSubscriptionManager subscriptionManager,
     ICommandProcessor processor,
     ILogger <CommandSubscriber> logger,
     VoguediOptions options)
     : base(queueConsumerFactory, subscriptionManager, processor, logger, options.DefaultCommandGroupName, options.DefaultCommandTopicQueueCount)
 {
 }
Example #4
0
 protected MessageSubscriber(
     IMessageQueueConsumerFactory consumerFactory,
     IMessageSubscriptionManager subscriptionManager,
     IMessageProcessor processor,
     ILogger logger,
     string defaultGroupName,
     int defaultTopicQueueCount)
 {
     this.queueConsumerFactory = consumerFactory;
     this.subscriptionManager  = subscriptionManager;
     this.processor            = processor;
     this.logger                 = logger;
     this.defaultGroupName       = defaultGroupName;
     this.defaultTopicQueueCount = defaultTopicQueueCount;
     timeout = TimeSpan.FromSeconds(1);
     cancellationTokenSource = new CancellationTokenSource();
 }