public TcpClientConnector() { _tcpConfiguration = Configuration.Instance.Setting.TcpConfiguration; _connectSocketArgsPool = new SocketArgsPool("TcpClientConnector._connectSocketArgsPool", _tcpConfiguration.ConnectPoolSize, CreateConnectSocketArgs); _pendingConections = new ConcurrentDictionary<Guid, PendingConnection>(); _timer = new Timer(TimerCallback, null, CheckPeriodMs, Timeout.Infinite); }
public TcpClientConnector() { _tcpConfiguration = Configuration.Instance.Setting.TcpConfiguration; _connectSocketArgsPool = new SocketArgsPool("TcpClientConnector._connectSocketArgsPool", _tcpConfiguration.ConnectPoolSize, CreateConnectSocketArgs); _pendingConections = new ConcurrentDictionary <Guid, PendingConnection>(); _timer = new Timer(TimerCallback, null, CheckPeriodMs, Timeout.Infinite); }
public Setting() { TcpConfiguration = new TcpConfiguration(); }