public IList <HardwareDescriptor> Get()
        {
            var systemTreeBuilder = new SystemTreeBuilder(sensorConfig);

            traverser.computer.Accept(systemTreeBuilder);
            return(systemTreeBuilder.entry.Children);
        }
Esempio n. 2
0
        protected virtual void BuildSystems()
        {
            SystemTreeBuilder builder = new SystemTreeBuilder();

            foreach (var system in GetType().Assembly
                     .GetAllSystems(type => type.GetCustomAttribute <IgnoreAttribute>() == null))
            {
                Container.Inject(system);
                builder.AddSystem(system);
            }
            builder.Build(SystemManager);
        }