public void ValidateConditionRefresh(OperationContext context) { lock (m_lock) { VerifySession(context); if (m_refreshInProgress) { throw new ServiceResultException(StatusCodes.BadRefreshInProgress); } } }