예제 #1
0
        public Version GetAppVersion(AppArchitecture_t appArch)
        {
            Version ver;

            m_appVersions.TryGetValue(appArch, out ver);
            return(ver);
        }
예제 #2
0
파일: AppUpdate.cs 프로젝트: Adel-dz/Hub
 public AppUpdate(uint id, Version ver, AppArchitecture_t appArch, DateTime tmCreation) :
     base(id)
 {
     Version         = ver;
     AppArchitecture = appArch;
     CreationTime    = tmCreation;
     DeployTime      = NOT_YET;
 }
예제 #3
0
        public void Read(IReader reader)
        {
            Assert(reader != null);

            byte arch = reader.ReadByte();

            if (!Enum.IsDefined(typeof(AppArchitecture_t), arch))
            {
                throw new CorruptedStreamException();
            }

            HubArchitecture        = (AppArchitecture_t)arch;
            Is64BitOperatingSystem = reader.ReadBoolean();
            UserName    = reader.ReadString();
            MachineName = reader.ReadString();
            OSVersion   = reader.ReadString();
            HubVersion  = reader.ReadString();
        }
예제 #4
0
 public ArchitectureItemHolder(AppArchitecture_t arch)
 {
     Architecture = arch;
 }
예제 #5
0
 public static string GetArchitectureName(AppArchitecture_t sys) => m_archNames[(byte)sys];
예제 #6
0
파일: AppUpdate.cs 프로젝트: Adel-dz/Hub
 public AppUpdate(uint id, Version ver, AppArchitecture_t appArch) :
     this(id, ver, appArch, DateTime.Now)
 {
 }