public static void Initialize(AsyncPackage package) { _package = package; var registry = new RegistryKeyWrapper(package.UserRegistryRoot); var store = new DataStore(registry, Constants.LogFilePath); var 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 }
public Installer(LiveFeed feed, DataStore store) { LiveFeed = feed; Store = store; }