public TcpRelayTransportBindingElement(Microsoft.ServiceBus.RelayClientAuthenticationType relayClientAuthenticationType) { this.relayClientAuthenticationType = relayClientAuthenticationType; this.relayedConnectionMode = TcpRelayConnectionMode.Relayed; this.listenBacklog = 10; this.connectionPoolSettings = new SocketConnectionPoolSettings(); this.IsDynamic = true; }
protected TcpRelayTransportBindingElement(TcpRelayTransportBindingElement elementToBeCloned) : base(elementToBeCloned) { this.relayClientAuthenticationType = elementToBeCloned.relayClientAuthenticationType; this.relayedConnectionMode = elementToBeCloned.relayedConnectionMode; this.listenBacklog = elementToBeCloned.listenBacklog; this.transportProtectionEnabled = elementToBeCloned.transportProtectionEnabled; this.connectionPoolSettings = elementToBeCloned.connectionPoolSettings.Clone(); this.IsDynamic = elementToBeCloned.IsDynamic; }