void SetLastUpdateCheckInfo(UpdateInfoFileContent updateInfoFileContent) { LastUpdateCheckInfo info = null; if (updateInfoFileContent.LastCheckTimestamp.HasValue) { info = new LastUpdateCheckInfo() { When = updateInfoFileContent.LastCheckTimestamp.Value, ErrorMessage = updateInfoFileContent.LastCheckError } } ; lock (sync) { lastUpdateResult = info; } FireChangedEvent(); } void SetState(AutoUpdateState state) { lock (sync) { if (this.state == state) { return; } this.state = state; } trace.Info("autoupdater state -> {0}", state); FireChangedEvent(); }
void SetLastUpdateCheckInfo(UpdateInfoFileContent updateInfoFileContent) { LastUpdateCheckInfo info = null; if (updateInfoFileContent.LastCheckTimestamp.HasValue) { info = new LastUpdateCheckInfo(updateInfoFileContent.LastCheckTimestamp.Value, updateInfoFileContent.LastCheckError); } lock (sync) { lastUpdateResult = info; } FireChangedEvent(); }