Beispiel #1
0
 public MessageReceiver(
     SqlServerTransport transport,
     string receiverId,
     string receiveAddress,
     string errorQueueAddress,
     Action <string, Exception, CancellationToken> criticalErrorAction,
     Func <TransportTransactionMode, ProcessStrategy> processStrategyFactory,
     Func <string, TableBasedQueue> queueFactory,
     IPurgeQueues queuePurger,
     IExpiredMessagesPurger expiredMessagesPurger,
     IPeekMessagesInQueue queuePeeker,
     QueuePeekerOptions queuePeekerOptions,
     SchemaInspector schemaInspector,
     TimeSpan waitTimeCircuitBreaker,
     ISubscriptionManager subscriptionManager)
 {
     this.transport = transport;
     this.processStrategyFactory = processStrategyFactory;
     this.queuePurger            = queuePurger;
     this.queueFactory           = queueFactory;
     this.expiredMessagesPurger  = expiredMessagesPurger;
     this.queuePeeker            = queuePeeker;
     this.queuePeekerOptions     = queuePeekerOptions;
     this.schemaInspector        = schemaInspector;
     this.waitTimeCircuitBreaker = waitTimeCircuitBreaker;
     this.errorQueueAddress      = errorQueueAddress;
     this.criticalErrorAction    = criticalErrorAction;
     Subscriptions  = subscriptionManager;
     Id             = receiverId;
     ReceiveAddress = receiveAddress;
 }
 public MessagePump(Func <TransportTransactionMode, ReceiveStrategy> receiveStrategyFactory, Func <string, TableBasedQueue> queueFactory, IPurgeQueues queuePurger, ExpiredMessagesPurger expiredMessagesPurger, IPeekMessagesInQueue queuePeeker, SchemaInspector schemaInspector, TimeSpan waitTimeCircuitBreaker)
 {
     this.receiveStrategyFactory = receiveStrategyFactory;
     this.queuePurger            = queuePurger;
     this.queueFactory           = queueFactory;
     this.expiredMessagesPurger  = expiredMessagesPurger;
     this.queuePeeker            = queuePeeker;
     this.schemaInspector        = schemaInspector;
     this.waitTimeCircuitBreaker = waitTimeCircuitBreaker;
 }
 public MessageReceiver(SqlServerTransport transport, ReceiveSettings receiveSettings, HostSettings hostSettings, Func <TransportTransactionMode, ProcessStrategy> processStrategyFactory, Func <string, TableBasedQueue> queueFactory, IPurgeQueues queuePurger, IExpiredMessagesPurger expiredMessagesPurger, IPeekMessagesInQueue queuePeeker, QueuePeekerOptions queuePeekerOptions, SchemaInspector schemaInspector, TimeSpan waitTimeCircuitBreaker, ISubscriptionManager subscriptionManager)
 {
     this.transport              = transport;
     this.receiveSettings        = receiveSettings;
     this.hostSettings           = hostSettings;
     this.processStrategyFactory = processStrategyFactory;
     this.queuePurger            = queuePurger;
     this.queueFactory           = queueFactory;
     this.expiredMessagesPurger  = expiredMessagesPurger;
     this.queuePeeker            = queuePeeker;
     this.queuePeekerOptions     = queuePeekerOptions;
     this.schemaInspector        = schemaInspector;
     this.waitTimeCircuitBreaker = waitTimeCircuitBreaker;
     Subscriptions = subscriptionManager;
 }