/// <summary>
 /// Gets the default user agent
 /// </summary>
 private static string GetDefaultUserAgent()
 {
     return(UserAgentPrefix +
            typeof(ClientConfiguration).Assembly.GetName().Version + "(" +
            OssUtils.DetermineOsVersion() + "/" +
            Environment.OSVersion.Version + "/" +
            OssUtils.DetermineSystemArchitecture() + ";" +
            Environment.Version + ")");
 }
        /// <summary>
        /// Gets the default user agent
        /// </summary>
        private static string GetDefaultUserAgent()
        {
            var agent = new StringBuilder();

            agent.Append(UserAgentPrefix);
            agent.Append(typeof(ClientConfiguration).Assembly.GetName().Version);
            agent.Append("(");
            agent.Append(Environment.OSVersion.VersionString);
            agent.Append("/");
            agent.Append(OssUtils.DetermineSystemArchitecture());
            agent.Append(";");
            agent.Append(Environment.Version);
            agent.Append(")");
            return(agent.ToString());

            //return UserAgentPrefix +
            //    typeof(ClientConfiguration).Assembly.GetName().Version + "(" +
            //    OssUtils.DetermineOsVersion() + "/" +
            //    Environment.OSVersion.Version + "/" +
            //    OssUtils.DetermineSystemArchitecture() + ";" +
            //    Environment.Version + ")";
        }