private IEnumerable <UserLocation> GetUserLocations(string[] targetDeviceIds) { foreach (var targetDeviceId in targetDeviceIds) { if (_locationCache.TryGetUserLocation(targetDeviceId, out UserLocation location)) { yield return(location); } } }