/// <summary> /// Secures the current connection stream /// </summary> /// <returns>True if the operation is successful</returns> protected override bool TrySecureStream() { bool success = ClientStreamWrapper.SecureStream(_fwHost); if (!success) { ClientStreamWrapper.Close(); } return(success); }
/// <summary> /// Secures the current connection stream /// </summary> /// <returns>True if the operation is successful</returns> protected virtual bool TrySecureStream() { string host = null; if (_requestInfo != null) { host = _requestInfo.Host; } bool success = ClientStreamWrapper.SecureStream(host); if (!success) { ClientStreamWrapper.Close(); } return(success); }