예제 #1
0
파일: CreateFile.cs 프로젝트: vgrinin/gin
 public override CommandResult Do(IExecutionContext context, Transaction transaction)
 {
     if (transaction != null)
     {
         string         absoluteDestPath = context.GetStringFrom(DestPath);
         SingleFileStep step             = transaction.CreateStep <SingleFileStep>(this);
         step.Init(context, DestPath);
     }
     Do(context);
     return(CommandResult.Next);
 }
예제 #2
0
 public override CommandResult Do(IExecutionContext context, Transaction transaction)
 {
     if (transaction != null)
     {
         SingleFileStep step                 = transaction.CreateStep <SingleFileStep>(this);
         bool           absoluteAllUsers     = context.GetBoolFrom(AllUsers);
         string         absoluteShortcutName = context.GetStringFrom(ShortcutName);
         string         linkPathName         = GetLinkPathName(absoluteShortcutName, absoluteAllUsers, Place);
         step.Init(context, linkPathName);
     }
     Do(context);
     return(CommandResult.Next);
 }
예제 #3
0
        public override CommandResult Do(IExecutionContext context, Transaction transaction)
        {
            context.Log.AddLogInformation("Вход в SQLCreateBackup.Do(ExecutionContext,Transaction)");
            string absoluteBackupFilePath = context.GetStringFrom(BackupFilePath);

            context.Log.AddLogInformation("BackupFilePath = '" + absoluteBackupFilePath + "'");
            SingleFileStep step = null;

            if (transaction != null)
            {
                step = transaction.CreateStep <SingleFileStep>(this);
                context.Log.AddLogInformation("Шаг транзакции типа SingleFileStep создан");
                step.Init(context, absoluteBackupFilePath);
                context.Log.AddLogInformation("Шаг транзакции типа SingleFileStep настроен");
            }
            Do(context);
            context.Log.AddLogInformation("Выход из SQLCreateBackup.Do(ExecutionContext,Transaction)");
            return(CommandResult.Next);
        }