public SocketConnectionBindingElement(IConnectionElement connectionElement) { this.connectionElement = connectionElement; this.enableKeepAlive = true; this.listenBacklog = 10; this.connectionPoolSettings = new SocketConnectionPoolSettings(); }
internal SocketConnectionPoolSettings(SocketConnectionPoolSettings tcp) { this.groupName = tcp.groupName; this.idleTimeout = tcp.idleTimeout; this.leaseTimeout = tcp.leaseTimeout; this.maxOutboundConnectionsPerEndpoint = tcp.maxOutboundConnectionsPerEndpoint; }
public TcpRelayTransportBindingElement(Microsoft.ServiceBus.RelayClientAuthenticationType relayClientAuthenticationType) { this.relayClientAuthenticationType = relayClientAuthenticationType; this.relayedConnectionMode = TcpRelayConnectionMode.Relayed; this.listenBacklog = 10; this.connectionPoolSettings = new SocketConnectionPoolSettings(); this.IsDynamic = true; }
protected SocketConnectionBindingElement(SocketConnectionBindingElement elementToBeCloned) : base(elementToBeCloned) { this.connectionElement = elementToBeCloned.ConnectionElement; this.enableKeepAlive = elementToBeCloned.enableKeepAlive; this.listenBacklog = elementToBeCloned.listenBacklog; this.teredoEnabled = elementToBeCloned.teredoEnabled; this.connectionPoolSettings = elementToBeCloned.connectionPoolSettings.Clone(); }
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; }
public RelayedOnewayTransportBindingElement(Microsoft.ServiceBus.RelayClientAuthenticationType relayClientAuthenticationType, RelayedOnewayConnectionMode connectionMode) { this.relayClientAuthenticationType = relayClientAuthenticationType; this.connectionMode = connectionMode; this.listenBacklog = 10; this.connectionPoolSettings = new SocketConnectionPoolSettings(); this.connectionBufferSize = 65536; this.channelInitializationTimeout = Microsoft.ServiceBus.Channels.ConnectionOrientedTransportDefaults.ChannelInitializationTimeout; this.maxBufferSize = 65536; this.maxPendingConnections = 10; this.maxOutputDelay = Microsoft.ServiceBus.Channels.ConnectionOrientedTransportDefaults.MaxOutputDelay; this.maxPendingAccepts = 1; }
public RelayedOnewayTransportBindingElement(RelayedOnewayTransportBindingElement elementToClone) { this.channelInitializationTimeout = elementToClone.channelInitializationTimeout; this.connectionBufferSize = elementToClone.connectionBufferSize; this.connectionMode = elementToClone.connectionMode; this.connectionPoolSettings = elementToClone.connectionPoolSettings.Clone(); this.listenBacklog = elementToClone.listenBacklog; base.ManualAddressing = elementToClone.ManualAddressing; this.MaxBufferPoolSize = elementToClone.MaxBufferPoolSize; this.maxBufferSize = elementToClone.maxBufferSize; this.maxBufferSizeInitialized = elementToClone.maxBufferSizeInitialized; this.maxOutputDelay = elementToClone.maxOutputDelay; this.maxPendingAccepts = elementToClone.maxPendingAccepts; this.maxPendingConnections = elementToClone.maxPendingConnections; this.MaxReceivedMessageSize = elementToClone.MaxReceivedMessageSize; this.relayClientAuthenticationType = elementToClone.relayClientAuthenticationType; this.transportProtectionEnabled = elementToClone.transportProtectionEnabled; }
internal bool IsMatch(SocketConnectionPoolSettings tcp) { if (this.groupName != tcp.groupName) { return(false); } if (this.idleTimeout != tcp.idleTimeout) { return(false); } if (this.leaseTimeout != tcp.leaseTimeout) { return(false); } if (this.maxOutboundConnectionsPerEndpoint != tcp.maxOutboundConnectionsPerEndpoint) { return(false); } return(true); }