예제 #1
0
 public CopyMoveFilePair(CopyMoveFilePair pair, CollisionType?overrideCollision = null)
 {
     Source       = pair.Source;
     DestFilePath = pair.DestFilePath;
     Copy         = pair.Copy;
     Collision    = overrideCollision ?? pair.Collision;
     asyncResult  = pair.asyncResult;
 }
예제 #2
0
        private Task <string> Enqueue(CopyMoveFilePair pair)
        {
            lock (queue)
            {
                queue.Enqueue(pair);
                Monitor.Pulse(queue);
            }

            return(pair.Task);
        }
예제 #3
0
 public Task <string> EnqueueAgain(CopyMoveFilePair pair, CollisionType?overrideCollision = null)
 {
     return(Enqueue(new CopyMoveFilePair(pair, overrideCollision)));
 }
예제 #4
0
 public CopyMoveErrorEventArgs(CopyMoveFilePair pair, Exception exception = null)
 {
     Pair      = pair;
     Exception = exception;
 }