public AstRoot AcquireReadLock(Guid treeUserId) { if (TreeLock != null) { if (TreeLock.AcquireReadLock(treeUserId)) { return(_astRoot); } Debug.Fail(String.Format(CultureInfo.CurrentCulture, "Unable to acquire read lock for user {0}", treeUserId)); } return(null); }