Beispiel #1
0
        public static void SetDefaultStore(SettingsHolder settings, Func <ReadOnlySettings, IDocumentStore> storeCreator)
        {
            if (storeCreator == null)
            {
                throw new ArgumentNullException(nameof(storeCreator));
            }
            var initContext = new DocumentStoreInitializer(storeCreator);

            settings.Set(defaultDocStoreSettingsKey, initContext);
        }
Beispiel #2
0
        static void SetDefaultStoreInternal(SettingsHolder settings, Func <ReadOnlySettings, IServiceProvider, IDocumentStore> storeCreator)
        {
            var initContext = new DocumentStoreInitializer(storeCreator);

            settings.Set(defaultDocStoreSettingsKey, initContext);
        }
Beispiel #3
0
        static void SetDocumentStoreInternal(SettingsHolder settings, Type storageType, Func <ReadOnlySettings, IServiceProvider, IDocumentStore> storeCreator)
        {
            var initContext = new DocumentStoreInitializer(storeCreator);

            settings.Set(featureSettingsKeys[storageType], initContext);
        }