public ConnectionDemuxer(IConnectionListener listener, int maxAccepts, int maxPendingConnections, TimeSpan channelInitializationTimeout, TimeSpan idleTimeout, int maxPooledConnections, TransportSettingsCallback transportSettingsCallback, SingletonPreambleDemuxCallback singletonPreambleCallback, ServerSessionPreambleDemuxCallback serverSessionPreambleCallback, System.ServiceModel.Channels.ErrorCallback errorCallback)
 {
     this.acceptor = new ConnectionAcceptor(listener, maxAccepts, maxPendingConnections, new ConnectionAvailableCallback(this.OnConnectionAvailable), errorCallback);
     this.channelInitializationTimeout = channelInitializationTimeout;
     this.idleTimeout = idleTimeout;
     this.maxPooledConnections = maxPooledConnections;
     this.onConnectionClosed = new ConnectionClosedCallback(this.OnConnectionClosed);
     this.transportSettingsCallback = transportSettingsCallback;
     this.singletonPreambleCallback = singletonPreambleCallback;
     this.serverSessionPreambleCallback = serverSessionPreambleCallback;
 }
Exemplo n.º 2
0
 public ConnectionDemuxer(IConnectionListener listener, int maxAccepts, int maxPendingConnections, TimeSpan channelInitializationTimeout, TimeSpan idleTimeout, int maxPooledConnections, TransportSettingsCallback transportSettingsCallback, SingletonPreambleDemuxCallback singletonPreambleCallback, ServerSessionPreambleDemuxCallback serverSessionPreambleCallback, System.ServiceModel.Channels.ErrorCallback errorCallback)
 {
     this.acceptor = new ConnectionAcceptor(listener, maxAccepts, maxPendingConnections, new ConnectionAvailableCallback(this.OnConnectionAvailable), errorCallback);
     this.channelInitializationTimeout = channelInitializationTimeout;
     this.idleTimeout                   = idleTimeout;
     this.maxPooledConnections          = maxPooledConnections;
     this.onConnectionClosed            = new ConnectionClosedCallback(this.OnConnectionClosed);
     this.transportSettingsCallback     = transportSettingsCallback;
     this.singletonPreambleCallback     = singletonPreambleCallback;
     this.serverSessionPreambleCallback = serverSessionPreambleCallback;
 }
 public ListenerConnectionDemuxer(IConnectionListener listener, 
     TransportType transportType,
     int maxAccepts, int initialMaxPendingConnections,
     TimeSpan channelInitializationTimeout,
     ConnectionHandleDuplicated connectionHandleDuplicated)
 {
     this.transportType = transportType;
     this.connectionReaders = new List<InitialServerConnectionReader>();
     this.connectionHandleDuplicated = connectionHandleDuplicated;
     this.acceptor = new ConnectionAcceptor(listener, maxAccepts, initialMaxPendingConnections, OnConnectionAvailable);
     this.channelInitializationTimeout = channelInitializationTimeout;
     this.onConnectionClosed = new ConnectionClosedCallback(OnConnectionClosed);
     this.onViaDecoded = new ViaDecodedCallback(OnViaDecoded);
 }