コード例 #1
0
 public SocketConnectionBindingElement(IConnectionElement connectionElement)
 {
     this.connectionElement      = connectionElement;
     this.enableKeepAlive        = true;
     this.listenBacklog          = 10;
     this.connectionPoolSettings = new SocketConnectionPoolSettings();
 }
コード例 #2
0
 internal SocketConnectionPoolSettings(SocketConnectionPoolSettings tcp)
 {
     this.groupName    = tcp.groupName;
     this.idleTimeout  = tcp.idleTimeout;
     this.leaseTimeout = tcp.leaseTimeout;
     this.maxOutboundConnectionsPerEndpoint = tcp.maxOutboundConnectionsPerEndpoint;
 }
コード例 #3
0
 public TcpRelayTransportBindingElement(Microsoft.ServiceBus.RelayClientAuthenticationType relayClientAuthenticationType)
 {
     this.relayClientAuthenticationType = relayClientAuthenticationType;
     this.relayedConnectionMode         = TcpRelayConnectionMode.Relayed;
     this.listenBacklog          = 10;
     this.connectionPoolSettings = new SocketConnectionPoolSettings();
     this.IsDynamic = true;
 }
コード例 #4
0
 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();
 }
コード例 #5
0
 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;
 }
コード例 #6
0
 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;
 }
コード例 #7
0
 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;
 }
コード例 #8
0
 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);
 }