protected override ActionExtensionWorker.ActionDescription GetActionDescription(InstallPhase phase)
        {
            string mes = "";
              string info = string.IsNullOrEmpty(currentScriptName) ? "" : " " + currentScriptName + " для " + currentDatabaseName;

              switch (phase)
              {
            case InstallPhase.Immediate:
              mes = "Подготовка к выполнению SQL-скрипта.";
              break;
            case InstallPhase.Deferred:
              mes = "Выполнение SQL-скрипта{0}.";
              mes = string.Format(mes, info);
              break;
            case InstallPhase.Rollback:
              mes = "Откат выполнения SQL-скрипта.";
              break;
              }
              return new ActionDescription { Name = mes, Description = mes };
        }
        protected override ActionExtensionWorker.ActionDescription GetActionDescription(InstallPhase phase)
        {
            string mes = "";
              string nameForDisplay = string.IsNullOrEmpty(currentDatabaseName) ? "" : " " + currentDatabaseName;

              switch (phase)
              {
            case InstallPhase.Immediate:
              mes = "Подготовка к восстановлению баз данных.";
              break;
            case InstallPhase.Deferred:
              mes = "Восстановление базы данных{0}.";
              mes = string.Format(mes, nameForDisplay);
              break;
            case InstallPhase.Rollback:
              mes = "Откат восстановления базы данных{0}.";
              mes = string.Format(mes, nameForDisplay);
              break;
              }
              return new ActionDescription { Name = mes, Description = mes };
        }
예제 #3
0
 /// <summary>
 /// Возвращает описание действия для вывода в UI для каждой фазы.
 /// </summary>
 protected abstract ActionDescription GetActionDescription(InstallPhase phase);
예제 #4
0
 private IEnumerable <IInstallStep> getInstallersForStep(InstallPhase step) =>
 providerInstallers.TryGetValue(step, out var installers) ? installers : Enumerable.Empty <IInstallStep>();
        protected override ActionExtensionWorker.ActionDescription GetActionDescription(InstallPhase phase)
        {
            string mes = "";

              switch (phase)
              {
            case InstallPhase.Immediate:
              mes = "Подготовка к установке расширений SQL-сервера.";
              break;
            case InstallPhase.Deferred:
              mes = "Установка расширений SQL-сервера.";
              break;
            case InstallPhase.Rollback:
              mes = "Отмена установки расширений SQL-сервера.";
              break;
              }
              return new ActionDescription { Name = mes, Description = mes };
        }