static string GetPathAndQuery(WSFederationMessage request)
        {
            StringBuilder strb = new StringBuilder(128);

            using (StringWriter writer = new StringWriter(strb, CultureInfo.InvariantCulture))
            {
                request.Write(writer);
                return(strb.ToString());
            }
        }