private List<IActivator> runAllBootstrappers()
 {
     var discoveredActivators = new List<IActivator>();
     _diagnostics.LogExecutionOnEach(_bootstrappers, b =>
     {
         var bootstrapperActivators = b.Bootstrap(_diagnostics.LogFor(b));
         discoveredActivators.AddRange(bootstrapperActivators);
         _diagnostics.LogBootstrapperRun(b, bootstrapperActivators);
     });
     return discoveredActivators;
 }
Ejemplo n.º 2
0
        private List <IActivator> collectAllActivatorsFromBootstrappers()
        {
            var result = new List <IActivator>();

            _diagnostics.LogExecutionOnEach(_bootstrappers, (currentBootstrapper, log) =>
            {
                var bootstrapperActivators = currentBootstrapper.Bootstrap(log);
                result.AddRange(bootstrapperActivators);
                _diagnostics.LogBootstrapperRun(currentBootstrapper, bootstrapperActivators);
            });

            return(result);
        }