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);
 }
Beispiel #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);
 }
Beispiel #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);
        }