Exemplo n.º 1
0
 public override NextCall Invoke(WorkflowMethod invoker)
 {
     _filePath = WAFRuntime.Engine.FileTempPath + Guid.NewGuid();
     WMBackUpDatabase diag = new WMBackUpDatabase(_filePath);
     WFContext.InBackgroundMode = false;
     return new NextCall(diag, onComplete);
 }
Exemplo n.º 2
0
 NextCall database(WorkflowMethod invoker)
 {
     if (_includeDatabase) {
         _dbFilePath = _pathFromRootToAppFolder + "App_Data\\WAF_Database.zip";
         if (WAFRuntime.FileSystem.FileExists(_dbFilePath)) WAFRuntime.FileSystem.FileDelete(_dbFilePath);
         WMBackUpDatabase bk = new WMBackUpDatabase(_dbFilePath);
         return new NextCall(bk, files);
     } else {
         return new NextCall(files);
     }
 }