Beispiel #1
0
 private Bootstrapper()
 {
     Assemblies         = new List <Assembly>().AsReadOnly();
     _isBolted          = false;
     _serviceCollection = null;
     _serviceProvider   = null;
     _options           = null;
 }
Beispiel #2
0
 internal void BoltOn(IServiceCollection serviceCollection, BoltOnOptions options, Assembly callingAssembly = null)
 {
     Check.Requires(!_isBolted, "Components are already bolted");
     _isBolted          = true;
     _serviceCollection = serviceCollection;
     _options           = options;
     _callingAssembly   = callingAssembly ?? Assembly.GetCallingAssembly();
     LoadAssemblies();
     RunRegistrationTasks();
 }