public static IEnumerable <TeleportDescription> SelectMany(this ITeleportDescriptionRepository descriptionRepository, IEnumerable <int> descriptionIDs) { var descriptions = descriptionRepository.GetAll().ToDictionary(d => d.id); foreach (var id in descriptionIDs) { var d = descriptions.GetOrDefault(id); if (d != null) { yield return(d); } } }
public TeleportColumn(ITeleportDescriptionRepository teleportDescriptionRepository) { _teleportDescriptionRepository = teleportDescriptionRepository; _isEnabled = DynamicProperties.GetProperty <int>(k.enabled); }
public TeleportConnectColumns(ITeleportDescriptionRepository teleportDescriptionRepository, TeleportDescriptionBuilder.Factory descriptionBuilderFactory) { _teleportDescriptionRepository = teleportDescriptionRepository; _descriptionBuilderFactory = descriptionBuilderFactory; }
public TeleportList(ITeleportDescriptionRepository descriptionRepository) { _descriptionRepository = descriptionRepository; }