private static string GetUserAgentString(Type type) { var agent = $"common-client/{Info.AppVersion(type)}"; var platform = $"{Environment.OSVersion.Platform}; {Environment.OSVersion.VersionString}; {Environment.OSVersion.ServicePack}"; var runtime = $"common-client-runtime/{Environment.Version}"; return($"{agent} ({platform}) {runtime}"); }