Exemplo n.º 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);
        }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }