internal MsmqBindingElementBase() { this.customDeadLetterQueue = null; this.deadLetterQueue = System.ServiceModel.DeadLetterQueue.System; this.durable = true; this.exactlyOnce = true; this.maxRetryCycles = 2; this.receiveContextEnabled = true; this.receiveErrorHandling = System.ServiceModel.ReceiveErrorHandling.Fault; this.receiveRetryCount = 5; this.retryCycleDelay = MsmqDefaults.RetryCycleDelay; this.timeToLive = MsmqDefaults.TimeToLive; this.msmqTransportSecurity = new System.ServiceModel.MsmqTransportSecurity(); this.useMsmqTracing = false; this.useSourceJournal = false; this.ReceiveContextSettings = new MsmqReceiveContextSettings(); }
internal MsmqBindingElementBase(MsmqBindingElementBase elementToBeCloned) : base(elementToBeCloned) { this.customDeadLetterQueue = elementToBeCloned.customDeadLetterQueue; this.deadLetterQueue = elementToBeCloned.deadLetterQueue; this.durable = elementToBeCloned.durable; this.exactlyOnce = elementToBeCloned.exactlyOnce; this.maxRetryCycles = elementToBeCloned.maxRetryCycles; this.msmqTransportSecurity = new System.ServiceModel.MsmqTransportSecurity(elementToBeCloned.MsmqTransportSecurity); this.receiveContextEnabled = elementToBeCloned.ReceiveContextEnabled; this.receiveErrorHandling = elementToBeCloned.receiveErrorHandling; this.receiveRetryCount = elementToBeCloned.receiveRetryCount; this.retryCycleDelay = elementToBeCloned.retryCycleDelay; this.timeToLive = elementToBeCloned.timeToLive; this.useMsmqTracing = elementToBeCloned.useMsmqTracing; this.useSourceJournal = elementToBeCloned.useSourceJournal; this.ReceiveContextSettings = elementToBeCloned.ReceiveContextSettings; }
protected MsmqChannelFactoryBase(MsmqBindingElementBase bindingElement, BindingContext context, MessageEncoderFactory encoderFactory) : base(bindingElement, context) { this.exactlyOnce = true; this.addressTranslator = bindingElement.AddressTranslator; this.customDeadLetterQueue = bindingElement.CustomDeadLetterQueue; this.durable = bindingElement.Durable; this.deadLetterQueue = bindingElement.DeadLetterQueue; this.exactlyOnce = bindingElement.ExactlyOnce; this.msmqTransportSecurity = new System.ServiceModel.MsmqTransportSecurity(bindingElement.MsmqTransportSecurity); this.timeToLive = bindingElement.TimeToLive; this.useMsmqTracing = bindingElement.UseMsmqTracing; this.useSourceJournal = bindingElement.UseSourceJournal; if (this.MsmqTransportSecurity.MsmqAuthenticationMode == MsmqAuthenticationMode.Certificate) { this.InitializeSecurityTokenManager(context); } if (null != this.customDeadLetterQueue) { this.deadLetterQueuePathName = MsmqUri.DeadLetterQueueAddressTranslator.UriToFormatName(this.customDeadLetterQueue); } }