protected virtual void Dispose( bool disposing )
        {
            if ( disposing ) {
                ConnectionAttemptStarted = null;
                ConnectionAttemptFailed = null;
                ConnectionFailed = null;
                ConnectionEstablished = null;

                EndPoints = null;
                IPAddresses = null;
                CurrentEndPoint = null;
                CertificateCollection = null;
                Configuration = null;

                if ( null != EndPointEnumerator ) {
                    EndPointEnumerator.Dispose( );
                    EndPointEnumerator = null;
                }
                if ( null != TcpClient ) {
                    TcpClient.Close( );
                    TcpClient = null;
                }
                if ( null != _protocolHandler ) {
                    _protocolHandler.Dispose( );
                    _protocolHandler = null;
                }
                if ( null != _sslStream ) {
                    _sslStream.Dispose( );
                    _sslStream = null;
                }
            }
        }
 public ServerConnector( ConnectionConfiguration connConfig )
     : this()
 {
     Configuration = connConfig;
 }
 public ServerConnector(ConnectionConfiguration connConfig) : this()
 {
     Configuration = connConfig;
 }