//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: private static String runRequestAndGetHeaderValue(java.net.URI baseUri, String header) throws Exception private static string RunRequestAndGetHeaderValue(URI baseUri, string header) { IList <string> values = RunRequestAndGetHeaderValues(baseUri, header); if (values.Count == 0) { return(null); } else if (values.Count == 1) { return(values[0]); } else { throw new System.InvalidOperationException("Unexpected number of " + STRICT_TRANSPORT_SECURITY.asString() + " header values: " + values); } }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: private static String runRequestAndGetHstsHeaderValue(java.net.URI baseUri) throws Exception private static string RunRequestAndGetHstsHeaderValue(URI baseUri) { return(RunRequestAndGetHeaderValue(baseUri, STRICT_TRANSPORT_SECURITY.asString())); }