internal AuthenticationResult AuthenticationResultForBusiness()
        {
            AuthenticationResult result = null;
            ENAuthCacheEntry     entry  = BusinessCache;

            if (entry != null && !entry.IsValid())
            {
                // This auth result has already expired, so evict it.
                BusinessCache = null;
                entry         = null;
            }
            if (entry != null)
            {
                result = entry.AuthResult;
            }
            return(result);
        }
        internal AuthenticationResult AuthenticationResultForLinkedNotebook(string guid)
        {
            AuthenticationResult result = null;
            ENAuthCacheEntry     entry  = null;

            LinkedCache.TryGetValue(guid, out entry);
            if (entry != null && !entry.IsValid())
            {
                // This auth result has already expired, so evict it.
                LinkedCache.Remove(guid);
                entry = null;
            }
            else if (entry != null)
            {
                result = entry.AuthResult;
            }
            return(result);
        }