public MsmqReceiveContextLockManager(MsmqReceiveContextSettings receiveContextSettings, MsmqQueue queue)
 {
     this.queue = queue;
     this.receiveContextSettings = receiveContextSettings;
     this.messageExpiryMap = new Dictionary<long, MsmqReceiveContext>();
     this.transMessages = new Dictionary<Guid, List<MsmqReceiveContext>>();
     this.transactionCompletedHandler = new TransactionCompletedEventHandler(this.OnTransactionCompleted);
     this.messageExpiryTimer = new IOThreadTimer(new Action<object>(this.CleanupExpiredLocks), null, false);
     this.messageExpiryTimer.Set(this.messageTimeoutInterval);
 }
 public MsmqReceiveContextLockManager(MsmqReceiveContextSettings receiveContextSettings, MsmqQueue queue)
 {
     this.queue = queue;
     this.receiveContextSettings      = receiveContextSettings;
     this.messageExpiryMap            = new Dictionary <long, MsmqReceiveContext>();
     this.transMessages               = new Dictionary <Guid, List <MsmqReceiveContext> >();
     this.transactionCompletedHandler = new TransactionCompletedEventHandler(this.OnTransactionCompleted);
     this.messageExpiryTimer          = new IOThreadTimer(new Action <object>(this.CleanupExpiredLocks), null, false);
     this.messageExpiryTimer.Set(this.messageTimeoutInterval);
 }
        public MsmqReceiveContextLockManager(MsmqReceiveContextSettings receiveContextSettings, MsmqQueue queue)
        {
            Fx.Assert(queue is ILockingQueue, "Queue must be ILockingQueue");

            this.disposed = false;
            this.queue = queue;
            this.receiveContextSettings = receiveContextSettings;
            this.messageExpiryMap = new Dictionary<long, MsmqReceiveContext>();
            this.transMessages = new Dictionary<Guid, List<MsmqReceiveContext>>();
            transactionCompletedHandler = new TransactionCompletedEventHandler(OnTransactionCompleted);

            this.messageExpiryTimer = new IOThreadTimer(new Action<object>(CleanupExpiredLocks), null, false);
            this.messageExpiryTimer.Set(messageTimeoutInterval);
        }
 internal MsmqReceiveParameters(MsmqBindingElementBase bindingElement, MsmqUri.IAddressTranslator addressTranslator)
 {
     this.addressTranslator = addressTranslator;
     this.durable = bindingElement.Durable;
     this.exactlyOnce = bindingElement.ExactlyOnce;
     this.maxRetryCycles = bindingElement.MaxRetryCycles;
     this.receiveErrorHandling = bindingElement.ReceiveErrorHandling;
     this.receiveRetryCount = bindingElement.ReceiveRetryCount;
     this.retryCycleDelay = bindingElement.RetryCycleDelay;
     this.transportSecurity = new MsmqTransportSecurity(bindingElement.MsmqTransportSecurity);
     this.useMsmqTracing = bindingElement.UseMsmqTracing;
     this.useSourceJournal = bindingElement.UseSourceJournal;
     this.receiveContextSettings = new MsmqReceiveContextSettings(bindingElement.ReceiveContextSettings);
 }
        public MsmqReceiveContextLockManager(MsmqReceiveContextSettings receiveContextSettings, MsmqQueue queue)
        {
            Fx.Assert(queue is ILockingQueue, "Queue must be ILockingQueue");

            this.disposed = false;
            this.queue    = queue;
            this.receiveContextSettings = receiveContextSettings;
            this.messageExpiryMap       = new Dictionary <long, MsmqReceiveContext>();
            this.transMessages          = new Dictionary <Guid, List <MsmqReceiveContext> >();
            transactionCompletedHandler = new TransactionCompletedEventHandler(OnTransactionCompleted);

            this.messageExpiryTimer = new IOThreadTimer(new Action <object>(CleanupExpiredLocks), null, false);
            this.messageExpiryTimer.Set(messageTimeoutInterval);
        }
 internal MsmqReceiveParameters(MsmqBindingElementBase bindingElement, MsmqUri.IAddressTranslator addressTranslator)
 {
     this.addressTranslator      = addressTranslator;
     this.durable                = bindingElement.Durable;
     this.exactlyOnce            = bindingElement.ExactlyOnce;
     this.maxRetryCycles         = bindingElement.MaxRetryCycles;
     this.receiveErrorHandling   = bindingElement.ReceiveErrorHandling;
     this.receiveRetryCount      = bindingElement.ReceiveRetryCount;
     this.retryCycleDelay        = bindingElement.RetryCycleDelay;
     this.transportSecurity      = new MsmqTransportSecurity(bindingElement.MsmqTransportSecurity);
     this.useMsmqTracing         = bindingElement.UseMsmqTracing;
     this.useSourceJournal       = bindingElement.UseSourceJournal;
     this.receiveContextSettings = new MsmqReceiveContextSettings(bindingElement.ReceiveContextSettings);
 }