コード例 #1
0
        public static CustomerEnvironmentInfoPack GetEnvironmentInfoPack()
        {
            CustomerEnvironmentInfoPack environmentInfoPack = new CustomerEnvironmentInfoPack();

            environmentInfoPack.OSVersion = Environment.OSVersion.VersionString;
            MaintenanceRenewalsCheckStatusDAL checkStatus = MaintenanceRenewalsCheckStatusDAL.GetCheckStatus();
            DateTime minValue;

            if (checkStatus != null)
            {
                DateTime?lastUpdateCheck = checkStatus.LastUpdateCheck;
                if (lastUpdateCheck.HasValue)
                {
                    lastUpdateCheck = checkStatus.LastUpdateCheck;
                    minValue        = lastUpdateCheck.Value;
                    goto label_4;
                }
            }
            minValue = DateTime.MinValue;
label_4:
            environmentInfoPack.LastUpdateCheck  = minValue;
            environmentInfoPack.OrionDBVersion   = DatabaseInfoDAL.GetOrionDBVersion();
            environmentInfoPack.SQLVersion       = DatabaseInfoDAL.GetSQLEngineVersion();
            environmentInfoPack.Modules          = MaintUpdateNotifySvcWrapper.GetModules(ModulesCollector.GetInstalledModules());
            environmentInfoPack.CustomerUniqueId = ModulesCollector.GetCustomerUniqueId();
            return(environmentInfoPack);
        }
        // Token: 0x06000320 RID: 800 RVA: 0x00013D4C File Offset: 0x00011F4C
        public static CustomerEnvironmentInfoPack GetEnvironmentInfoPack()
        {
            CustomerEnvironmentInfoPack customerEnvironmentInfoPack = new CustomerEnvironmentInfoPack();
            OperatingSystem             osversion = Environment.OSVersion;

            customerEnvironmentInfoPack.OSVersion = osversion.VersionString;
            MaintenanceRenewalsCheckStatusDAL checkStatus = MaintenanceRenewalsCheckStatusDAL.GetCheckStatus();

            customerEnvironmentInfoPack.LastUpdateCheck  = ((checkStatus != null && checkStatus.LastUpdateCheck != null) ? checkStatus.LastUpdateCheck.Value : DateTime.MinValue);
            customerEnvironmentInfoPack.OrionDBVersion   = DatabaseInfoDAL.GetOrionDBVersion();
            customerEnvironmentInfoPack.SQLVersion       = DatabaseInfoDAL.GetSQLEngineVersion();
            customerEnvironmentInfoPack.Modules          = MaintUpdateNotifySvcWrapper.GetModules(ModulesCollector.GetInstalledModules());
            customerEnvironmentInfoPack.CustomerUniqueId = ModulesCollector.GetCustomerUniqueId();
            return(customerEnvironmentInfoPack);
        }