public bool IsActiveTime(DateTime time) { lock (_activationSpans) return _activationSpans.Any(a => time >= a.Start && time < a.End); }