/// <summary> /// Start the server. /// </summary> public void Start() { try { // Start the server. if (_serverSecureV6 != null) { _serverSecureV6.StartListeningThread(); } // Start the server. if (_serverSecureV4 != null) { _serverSecureV4.StartListeningThread(); } } catch (Exception) { if (_serverSecureV6 != null) { _serverSecureV6.Dispose(); } if (_serverSecureV4 != null) { _serverSecureV4.Dispose(); } _serverSecureV6 = null; _serverSecureV4 = null; throw; } }