protected internal virtual void CheckHistoryEnabled() { if (!IsHistoryEnabled) { throw Log.DisabledHistoryException(); } }