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; }
public StatusUpdater(IPatcherTranslation translation) { Translation = translation; }