Example #1
0
        public virtual Host Build()
        {
            _coordinator = new ServiceCoordinator(new PoolFiber(),
                                                  ExecutePreStartActions,
                                                  ExecutePostStartActions,
                                                  ExecutePostStopActions,
                                                  _timeout);

            _serviceBuilders.Each(x => { _coordinator.CreateService(x.Name, x.Build); });

            return(CreateHost(_coordinator));
        }
Example #2
0
        public virtual Host Build()
        {
            _coordinator = new ServiceCoordinator(new PoolFiber(),
                                                  ExecutePreStartActions,
                                                  ExecutePostStartActions,
                                                  ExecutePostStopActions,
                                                  _timeout);

            _serviceBuilders.Each(x => { _coordinator.CreateService(x.Name, x.Build); });

            //TODO: feels like it should be a builder
            var osCommands = OsDetector.DetectOs();


            return(CreateHost(_coordinator, osCommands));
        }