示例#1
0
        public UpdaterCore(WindowsPatcherConfig windowsPatcherConfig, Process hostProcess,
                           IPatcherTranslation translation)
        {
            _windowsPatcherConfig = windowsPatcherConfig;
            _hostProcess          = hostProcess;
            _environmentManager   = new EnvironmentManager(windowsPatcherConfig);
            _rollbackInfo         = new RollbackInfo("rollbackInfo.json")
            {
                ApplicationPath = windowsPatcherConfig.ApplicationPath,
                PatcherConfig   = windowsPatcherConfig
            };
            _logger     = new Logger(Path.Combine(windowsPatcherConfig.ActionConfig.ProjectId.GetTempDirectory(), "patcher", "log.txt"));
            Translation = translation;

            _statusUpdater = new StatusUpdater(Translation);
            _statusUpdater.StatusUpdated += StatusUpdaterOnStatusUpdated;
        }
示例#2
0
 public StatusUpdater(IPatcherTranslation translation)
 {
     Translation = translation;
 }