GetComponents() публичный Метод

public GetComponents ( ) : IEnumerable
Результат IEnumerable
Пример #1
0
        private IEnumerable <IServerSupervisor> GetStorageSupervisors()
        {
            var components = _storage.GetComponents();

            return(components
                   .Select(component => new ServerSupervisor(component))
                   .ToArray());
        }
Пример #2
0
        internal ServerSupervisorCollection GetSupervisors()
        {
            var supervisors = new List <IServerSupervisor>();

            supervisors.AddRange(GetCommonComponents().Select(CreateSupervisor));
            supervisors.AddRange(_storage.GetComponents().Select(CreateSupervisor));

            return(new ServerSupervisorCollection(supervisors));
        }