Пример #1
0
 public DurableListener(IListeningAgent agent, IWorkerQueue queues, ITransportLogger logger,
                        JasperOptions options, IEnvelopePersistence persistence)
 {
     _agent       = agent;
     _queues      = queues;
     _logger      = logger;
     _options     = options;
     _persistence = persistence;
 }
Пример #2
0
 public MartenBackedListener(IListeningAgent agent, IWorkerQueue queues, IDocumentStore store, CompositeTransportLogger logger, BusSettings settings, EnvelopeTables marker, MartenRetries retries)
 {
     _agent    = agent;
     _queues   = queues;
     _store    = store;
     _logger   = logger;
     _settings = settings;
     _marker   = marker;
     _retries  = retries;
 }
Пример #3
0
 public DurableListener(IListeningAgent agent, IWorkerQueue queues, ITransportLogger logger,
                        MessagingSettings settings, IRetries retries, IEnvelopePersistor persistor)
 {
     _agent     = agent;
     _queues    = queues;
     _logger    = logger;
     _settings  = settings;
     _retries   = retries;
     _persistor = persistor;
 }
Пример #4
0
 public QueueListener(
     IMessageTypesCache messageTypesCache,
     IMessagingLogger messagingLogger,
     UnprocessedMessagesResender unprocessedMessagesResender,
     IMessagingConfiguration messagingConfiguration,
     IListeningAgent listeningAgent,
     IDocumentMappingInitializer documentMappingInitializer,
     ISubscriptionAgent subscriptionAgent,
     ICollectionCreator collectionCreator
     )
 {
     _messageTypesCache           = messageTypesCache;
     _messagingLogger             = messagingLogger;
     _unprocessedMessagesResender = unprocessedMessagesResender;
     _messagingConfiguration      = messagingConfiguration;
     _listeningAgent             = listeningAgent;
     _documentMappingInitializer = documentMappingInitializer;
     _subscriptionAgent          = subscriptionAgent;
     _collectionCreator          = collectionCreator;
 }
 public IListener BuildListener(IListeningAgent agent, IMessagingRoot root)
 {
     _store.Tenancy.Default.EnsureStorageExists(typeof(Envelope));
     return(new DurableListener(agent, root.Workers, _logger, Settings, _retries, _persistor));
 }
Пример #6
0
 public LightweightListener(IWorkerQueue workerQueue, ITransportLogger logger, IListeningAgent agent)
 {
     _workerQueue = workerQueue;
     _logger      = logger;
     _agent       = agent;
 }
 public IListener BuildListener(IListeningAgent agent, IMessagingRoot root)
 {
     return(new DurableListener(agent, root.Workers, _logger, Settings, _retries, _persistor));
 }
Пример #8
0
 public IListener BuildListener(IListeningAgent agent, IWorkerQueue queues)
 {
     return(new LightweightListener(queues, _logger, agent));
 }
 public IListener BuildListener(IListeningAgent agent, IMessagingRoot root)
 {
     return(new LightweightListener(root.Workers, _logger, agent));
 }
Пример #10
0
 public IListener BuildListener(IListeningAgent agent, IWorkerQueue queues)
 {
     return(new MartenBackedListener(agent, queues, _store, _logger, Settings, Tables, _retries));
 }