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;
 }
Esempio 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;
 }
Esempio n. 3
0
 public ConnectionDemuxer(IConnectionListener listener, int maxAccepts, int maxPendingConnections,
                          TimeSpan channelInitializationTimeout, TimeSpan idleTimeout, int maxPooledConnections,
                          TransportSettingsCallback transportSettingsCallback,
                          SingletonPreambleDemuxCallback singletonPreambleCallback,
                          ServerSessionPreambleDemuxCallback serverSessionPreambleCallback, ErrorCallback errorCallback)
 {
     connectionReaders = new List <InitialServerConnectionReader>();
     acceptor          =
         new ConnectionAcceptor(listener, maxAccepts, maxPendingConnections, OnConnectionAvailable, errorCallback);
     this.channelInitializationTimeout = channelInitializationTimeout;
     this.idleTimeout                   = idleTimeout;
     this.maxPooledConnections          = maxPooledConnections;
     onConnectionClosed                 = new ConnectionClosedCallback(OnConnectionClosed);
     this.transportSettingsCallback     = transportSettingsCallback;
     this.singletonPreambleCallback     = singletonPreambleCallback;
     this.serverSessionPreambleCallback = serverSessionPreambleCallback;
 }