private IEnumerable <IServerSupervisor> GetStorageSupervisors() { var components = _storage.GetComponents(); return(components .Select(component => new ServerSupervisor(component)) .ToArray()); }
internal ServerSupervisorCollection GetSupervisors() { var supervisors = new List <IServerSupervisor>(); supervisors.AddRange(GetCommonComponents().Select(CreateSupervisor)); supervisors.AddRange(_storage.GetComponents().Select(CreateSupervisor)); return(new ServerSupervisorCollection(supervisors)); }