RavenFS.Synchronization.SynchronizationQueue.IsDifferentWorkForTheSameFileBeingPerformed C# (CSharp) Method

IsDifferentWorkForTheSameFileBeingPerformed() public method

public IsDifferentWorkForTheSameFileBeingPerformed ( SynchronizationWorkItem work, string destination ) : bool
work SynchronizationWorkItem
destination string
return bool
		public bool IsDifferentWorkForTheSameFileBeingPerformed(SynchronizationWorkItem work, string destination)
		{
			ConcurrentDictionary<string, SynchronizationWorkItem> activeForDestination;
			if (!activeSynchronizations.TryGetValue(destination, out activeForDestination))
				return false;

			SynchronizationWorkItem activeWork;
			return activeForDestination.TryGetValue(work.FileName, out activeWork) && !activeWork.Equals(work);
		}