示例#1
0
        private Task <string> RemoteCopyBinaries(string host)
        {
            //var source_dir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);

            var t = Task.Run(() => {
                return(GammaFSUtility.RemoteCopyFiles(host, Source_location, Target_location));
            });

            t.GetAwaiter().OnCompleted(() =>
            {
                OnOpCompleted(new OpResultArgs()
                {
                    OpResult = t.Result, Hostname = host, OpType = "copy service file"
                });
            });
            return(t);
        }