public AutofacClaptrapBootstrapperBuilder(
     ILoggerFactory?loggerFactory = default)
 {
     _loggerFactory = loggerFactory ?? new NullLoggerFactory();
     LoggerFactoryHolder.Instance = _loggerFactory;
     _logger = _loggerFactory.CreateLogger <AutofacClaptrapBootstrapperBuilder>();
     _l      = new Lazy <IL>(CreateL);
     Options = new ClaptrapBootstrapperBuilderOptions
     {
         DesignTypes = Enumerable.Empty <Type>(),
         ModuleTypes = Enumerable.Empty <Type>(),
         ClaptrapDesignStoreConfigurators = new List <IClaptrapDesignStoreConfigurator>(),
         ClaptrapDesignStoreProviders     = new List <IClaptrapDesignStoreProvider>(),
         ClaptrapModuleProviders          = new List <IClaptrapModuleProvider>()
     };
 }
Ejemplo n.º 2
0
 public AutofacClaptrapBootstrapperBuilder(
     ILoggerFactory loggerFactory,
     ContainerBuilder applicationBuilder)
 {
     _loggerFactory               = loggerFactory;
     _applicationBuilder          = applicationBuilder;
     LoggerFactoryHolder.Instance = loggerFactory;
     _logger = loggerFactory.CreateLogger <AutofacClaptrapBootstrapperBuilder>();
     _l      = new Lazy <IL>(CreateL);
     Options = new ClaptrapBootstrapperBuilderOptions
     {
         DesignTypes = Enumerable.Empty <Type>(),
         ModuleTypes = Enumerable.Empty <Type>(),
         ClaptrapDesignStoreConfigurators = new List <IClaptrapDesignStoreConfigurator>(),
         ClaptrapDesignStoreProviders     = new List <IClaptrapDesignStoreProvider>(),
         ClaptrapModuleProviders          = new List <IClaptrapModuleProvider>(),
     };
 }
        public AutofacClaptrapBootstrapperBuilder(
            ILoggerFactory loggerFactory,
            ContainerBuilder applicationBuilder)
        {
            _loggerFactory               = loggerFactory;
            _applicationBuilder          = applicationBuilder;
            LoggerFactoryHolder.Instance = loggerFactory;
            _logger = loggerFactory.CreateLogger <AutofacClaptrapBootstrapperBuilder>();
            _l      = new Lazy <IL>(CreateL);
            Options = new ClaptrapBootstrapperBuilderOptions
            {
                DesignTypes = Enumerable.Empty <Type>(),
                ModuleTypes = Enumerable.Empty <Type>(),
                ClaptrapDesignStoreConfigurators = new List <IClaptrapDesignStoreConfigurator>
                {
                    // TODO remove to sub module maybe
                    new SageClaptrapDesignStoreConfigurator()
                },
                ClaptrapDesignStoreProviders = new List <IClaptrapDesignStoreProvider>(),
                ClaptrapModuleProviders      = new List <IClaptrapModuleProvider>(),
            };

            DefaultClaptrapDesignConfigurator.Configure(this);
        }
Ejemplo n.º 4
0
 public DbFactory(
     ClaptrapBootstrapperBuilderOptions options)
 {
     _options = options;
 }
Ejemplo n.º 5
0
 public ClaptrapApplicationModulesProvider(
     ClaptrapBootstrapperBuilderOptions claptrapBootstrapperBuilderOptions)
 {
     _claptrapBootstrapperBuilderOptions = claptrapBootstrapperBuilderOptions;
 }
 public ClaptrapBootstrapperBuilderOptionsModule(
     ClaptrapBootstrapperBuilderOptions claptrapBootstrapperBuilderOptions)
 {
     _claptrapBootstrapperBuilderOptions = claptrapBootstrapperBuilderOptions;
 }
Ejemplo n.º 7
0
 public ClaptrapAppProvider(
     ClaptrapBootstrapperBuilderOptions claptrapBootstrapperBuilderOptions)
 {
     _claptrapBootstrapperBuilderOptions = claptrapBootstrapperBuilderOptions;
 }