internal string GetUpdaterVersion() { FileInfo updaterFile = this.telimena.Locator.GetUpdater(this.telimena.Properties.LiveProgramInfo); if (updaterFile.Exists) { string version = TelimenaVersionReader.ReadToolkitVersion(updaterFile.FullName); return(string.IsNullOrEmpty(version) ? "0.0.0.0" : version); } return("0.0.0.0"); }
/// <summary> /// Creates new instance /// </summary> /// <param name="info"></param> public TelimenaProperties(ITelimenaStartupInfo info) { this.StartupInfo = info; this.StaticProgramInfo = info.ProgramInfo ?? new ProgramInfo { PrimaryAssembly = new Model.AssemblyInfo(this.StartupInfo.MainAssembly), Name = this.StartupInfo.MainAssembly.GetName().Name }; this.UserInfo = info.UserInfo ?? new UserInfo { UserIdentifier = Environment.UserName, MachineName = Environment.MachineName }; this.SuppressAllErrors = info.SuppressAllErrors; this.TelimenaVersion = TelimenaVersionReader.ReadToolkitVersion(Assembly.GetExecutingAssembly()); }
/// <summary> /// Creates new instance /// </summary> /// <param name="info"></param> public TelimenaProperties(ITelimenaStartupInfo info) { this.StartupInfo = info; this.StaticProgramInfo = info.ProgramInfo ?? new ProgramInfo { PrimaryAssembly = new Model.AssemblyInfo(this.StartupInfo.MainAssembly), Name = this.StartupInfo.MainAssembly.GetName().Name }; this.Locator = new Locator(this.StaticProgramInfo); this.SuppressAllErrors = info.SuppressAllErrors; this.TelimenaVersion = TelimenaVersionReader.ReadToolkitVersion(Assembly.GetExecutingAssembly()); this.InstrumentationKey = this.StartupInfo.InstrumentationKey; }