public CopyMoveFilePair(CopyMoveFilePair pair, CollisionType?overrideCollision = null) { Source = pair.Source; DestFilePath = pair.DestFilePath; Copy = pair.Copy; Collision = overrideCollision ?? pair.Collision; asyncResult = pair.asyncResult; }
private Task <string> Enqueue(CopyMoveFilePair pair) { lock (queue) { queue.Enqueue(pair); Monitor.Pulse(queue); } return(pair.Task); }
public Task <string> EnqueueAgain(CopyMoveFilePair pair, CollisionType?overrideCollision = null) { return(Enqueue(new CopyMoveFilePair(pair, overrideCollision))); }
public CopyMoveErrorEventArgs(CopyMoveFilePair pair, Exception exception = null) { Pair = pair; Exception = exception; }