Esempio n. 1
0
 internal async Task StartAsync(RemoteAppcast appcast)
 {
     InitializeCommands(appcast);
     Title = string.Format("A NEW VERSION OF {0} IS AVAILABLE", appcast.Title).ToUpperInvariant();
     OldVersion = new AssemblyAccessor().Version;
     NewVersion = appcast.Version.ToString();
     ReleaseNotes = await FetchReleaseNotesAsync(appcast.ReleaseNotesUrl).ConfigureAwait(false);
 }
Esempio n. 2
0
 internal RegistryIO()
 {
     var accessor = new AssemblyAccessor();
     if (string.IsNullOrWhiteSpace(accessor.Company) || string.IsNullOrWhiteSpace(accessor.Product))
     {
         throw new FormatException("Your main assembly is missing company and/or product name. Both fields are required.");
     }
     _magpieRegistryPath = string.Format(MagicStrings.REG_ROOT_PATH, accessor.Company, accessor.Product);
 }
Esempio n. 3
0
        internal RegistryIO()
        {
            var accessor = new AssemblyAccessor();

            if (string.IsNullOrWhiteSpace(accessor.Company) || string.IsNullOrWhiteSpace(accessor.Product))
            {
                throw new FormatException("Your main assembly is missing company and/or product name. Both fields are required.");
            }
            _magpieRegistryPath = string.Format(MagicStrings.REG_ROOT_PATH, accessor.Company, accessor.Product);
        }