Ejemplo n.º 1
0
 public DurableListener(IListeningAgent agent, IWorkerQueue queues, ITransportLogger logger,
                        JasperOptions options, IEnvelopePersistence persistence)
 {
     _agent       = agent;
     _queues      = queues;
     _logger      = logger;
     _options     = options;
     _persistence = persistence;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 10
0
 public IListener BuildListener(IListeningAgent agent, IWorkerQueue queues)
 {
     return(new MartenBackedListener(agent, queues, _store, _logger, Settings, Tables, _retries));
 }