コード例 #1
0
 public static ProcessResults ValidateDBVersions(string id, Action <ProcessTrace, StepNotificationState> onNotificationStateChanged)
 {
     lock (_processSyncLock)
     {
         return(_dbVersionsAPI.ValidateDBVersions(id, onNotificationStateChanged));
     }
 }
コード例 #2
0
        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);
        }