public static ProcessResults ValidateDBVersions(string id, Action <ProcessTrace, StepNotificationState> onNotificationStateChanged) { lock (_processSyncLock) { return(_dbVersionsAPI.ValidateDBVersions(id, onNotificationStateChanged)); } }
public override Command Create() { Command command = new Command("validate") { _idOption, }; command.Description = CLITextResources.ValidateCommandDescription; command.Handler = CommandHandler.Create <string>((id) => { _consoleProcessMessages.StartProcessMessage("validate", id); _consoleProcessMessages.StartSpiiner(); ProcessResults processResults = _dbVersionsAPI.ValidateDBVersions(id, _consoleProcessMessages.OnNotificationStateChanged); _consoleProcessMessages.StopSpinner(); _consoleProcessMessages.ProcessComplete(processResults); }); return(command); }