Example #1
0
        private void OnCopyInternal(UvArgs args)
        {
            var callback = _copyCallback;
            _copyCallback = null;
            var copy = _copy;
            _copy = null;

            callback.Invoke(args.Code, this.OnCopy, this.Copied);
        }
Example #2
0
 public void Copy(string source, string destination, Action<UvArgs> callback = null)
 {
     _copy = new FileCopy(source, destination, this.OnCopyInternal);
     _copyCallback = new UvCallback(this, callback);
 }
Example #3
0
 public void Copy(string source, string destination, Action <UvArgs> callback = null)
 {
     _copy         = new FileCopy(source, destination, this.OnCopyInternal);
     _copyCallback = new UvCallback(this, callback);
 }