Exemplo n.º 1
0
        public static void SetAWSPowerShellUserAgent(System.Version hostVersion)
        {
#if DESKTOP
            var moduleName = "AWSPowerShell";
            var platform   = "WindowsPowerShell";
#elif MODULAR
            var moduleName = "AWSPowerShell.Common";
            var platform   = "PowerShellCore";
#else
            var moduleName = "AWSPowerShell.NetCore";
            var platform   = "PowerShellCore";
#endif

            InternalSDKUtils.SetUserAgent(moduleName,
                                          TypeFactory.GetTypeInfo(typeof(BaseCmdlet)).Assembly.GetName().Version.ToString(),
                                          string.Format("{0}/{1}.{2}", platform, hostVersion.Major, hostVersion.MajorRevision));
        }