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); }
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; }
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(); }