Beispiel #1
0
        public string StartCopyFiles(string appId, string fromHostId, string fromPath, string toHostId, string toPath,
                                     bool recursive)
        {
            var param = new RunFileCopyType
            {
                applicationID      = appId,
                fromHostID         = fromHostId,
                sourcePath         = fromPath,
                toHostID           = toHostId,
                destinationPath    = toPath,
                recursive          = recursive,
                recursiveSpecified = true
            };

            return(utilSvc.startFileCopy(param));
        }
 public string StartCopyFiles(string appId, string fromHostId, string fromPath, string toHostId, string toPath,
     bool recursive)
 {
     var param = new RunFileCopyType
         {
             applicationID = appId,
             fromHostID = fromHostId,
             sourcePath = fromPath,
             toHostID = toHostId,
             destinationPath = toPath,
             recursive = recursive,
             recursiveSpecified = true
         };
     return utilSvc.startFileCopy(param);
 }
 /// <remarks/>
 public void startFileCopyAsync(RunFileCopyType startFileCopyInput)
 {
     this.startFileCopyAsync(startFileCopyInput, null);
 }
 /// <remarks/>
 public void startFileCopyAsync(RunFileCopyType startFileCopyInput, object userState)
 {
     if ((this.startFileCopyOperationCompleted == null))
     {
         this.startFileCopyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnstartFileCopyOperationCompleted);
     }
     this.InvokeAsync("startFileCopy", new object[] {
                 startFileCopyInput}, this.startFileCopyOperationCompleted, userState);
 }
 /// <remarks/>
 public System.IAsyncResult BeginstartFileCopy(RunFileCopyType startFileCopyInput, System.AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("startFileCopy", new object[] {
                 startFileCopyInput}, callback, asyncState);
 }