Example #1
0
 private ClientVersionModel ReadClientVersion()
 {
     try
     {
         string versionFilePath = Path.Combine(ClientAppFolderPath, TextConstants.ClientVersionFileName);
         string text            = File.ReadAllText(versionFilePath);
         return(ClientVersionModel.Parse(text));
     }
     catch (Exception e)
     {
         _logger.LogError(e, "Failed to read client app version!");
     }
     return(new ClientVersionModel()
     {
         ExtraVersion = 0, MainVersion = 0, SubVersion = 0, Postfix = "Failed to read!"
     });
 }
Example #2
0
        private ClientVersionModel ReadCurrentVersion()
        {
            string text = File.ReadAllText(_versionFileName);

            return(ClientVersionModel.Parse(text));
        }