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