예제 #1
0
        public static void Initialize(AsyncPackage package)
        {
            _package = package;
            RegistryKeyWrapper registry = new RegistryKeyWrapper(package.UserRegistryRoot);
            DataStore          store    = new DataStore(registry, Constants.LogFilePath);
            LiveFeed           feed     = new LiveFeed(Constants.LiveFeedUrl, Constants.LiveFeedCachePath);

            Installer         = new Installer(feed, store);
            Installer.Update += OnUpdate;
            Installer.Done   += OnInstallationDone;
#if DEBUG // This deletes feed.json and installer.log so it finds updates
            Reset();
#endif
        }
예제 #2
0
 public Installer(LiveFeed feed, DataStore store)
 {
     LiveFeed = feed;
     Store    = store;
 }