コード例 #1
0
        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;
            }
        }
コード例 #2
0
        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);
            }
        }