public static bool TryDecode(string httpHeader, out AuthenticationHeader decoded) { decoded = null; if (string.IsNullOrWhiteSpace(httpHeader)) return false; try { decoded = new AuthenticationHeader(httpHeader); return true; } catch { return false; } }
public static bool TryDecode(string httpHeader, out AuthenticationHeader decoded) { decoded = null; if (string.IsNullOrWhiteSpace(httpHeader)) { return(false); } try { decoded = new AuthenticationHeader(httpHeader); return(true); } catch { return(false); } }