示例#1
0
 public Installer(LiveFeed feed, DataStore store, ISettings settings, ILogger logger)
 {
     _settings = settings;
     _logger   = logger;
     LiveFeed  = feed;
     Store     = store;
 }
示例#2
0
        public static void Initialize(AsyncPackage package, ISettings settings, ILogger logger)
        {
            _log.Debug("Initialise");
            _package  = package;
            _settings = settings;
            _logger   = logger;
            var registry = new RegistryKeyWrapper(package.UserRegistryRoot);
            var store    = new DataStore(registry, settings);
            var feed     = new LiveFeed(settings.LiveFeedUrl, settings.LiveFeedCachePath, _logger);

            Installer         = new Installer(feed, store, _settings, _logger);
            Installer.Update += OnUpdate;
            Installer.Done   += OnInstallationDone;

#if DEBUG
            // This deletes feed.json and installer.log so it finds updates
            Reset();
#endif

            _log.Debug("Init completed");
        }