private Bootstrapper() { Assemblies = new List <Assembly>().AsReadOnly(); _isBolted = false; _serviceCollection = null; _serviceProvider = null; _options = null; }
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(); }