Beispiel #1
0
        public FactoryIndexer(
            IContainer container,
            FactoryIndexerHelper factoryIndexerHelper,
            Client client,
            IOptionsMonitor <ILog> options,
            CoreBaseSettings coreBaseSettings)
        {
            FactoryIndexerHelper = factoryIndexerHelper;
            Client           = client;
            CoreBaseSettings = coreBaseSettings;

            try
            {
                Log = options.Get("ASC.Indexer");

                if (container != null)
                {
                    Builder = container;
                    Init    = true;
                }
            }
            catch (Exception e)
            {
                Log.Fatal("FactoryIndexer", e);
            }
        }
Beispiel #2
0
        public FactoryIndexer(
            ILifetimeScope container,
            FactoryIndexerHelper factoryIndexerHelper,
            Client client,
            IOptionsMonitor <ILog> options,
            CoreBaseSettings coreBaseSettings,
            ICache cache)
        {
            this.cache           = cache;
            Builder              = container;
            FactoryIndexerHelper = factoryIndexerHelper;
            Client           = client;
            CoreBaseSettings = coreBaseSettings;

            try
            {
                Log = options.Get("ASC.Indexer");

                if (container != null)
                {
                    Builder = container;
                    Init    = true;
                }
            }
            catch (Exception e)
            {
                Log.Fatal("FactoryIndexer", e);
            }
        }
Beispiel #3
0
 public FactoryIndexer(
     ILifetimeScope container,
     FactoryIndexerHelper factoryIndexerHelper,
     Client client,
     IOptionsMonitor <ILog> options,
     CoreBaseSettings coreBaseSettings) : this(null, factoryIndexerHelper, client, options, coreBaseSettings)
 {
     Builder = container;
 }
Beispiel #4
0
        public FactoryIndexer(
            IServiceProvider serviceProvider,
            FactoryIndexerHelper factoryIndexerHelper,
            Client client,
            IOptionsMonitor <ILog> options,
            CoreBaseSettings coreBaseSettings,
            ICache cache)
        {
            this.cache           = cache;
            ServiceProvider      = serviceProvider;
            FactoryIndexerHelper = factoryIndexerHelper;
            Client           = client;
            CoreBaseSettings = coreBaseSettings;

            try
            {
                Log = options.Get("ASC.Indexer");
            }
            catch (Exception e)
            {
                Log.Fatal("FactoryIndexer", e);
            }
        }