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