Пример #1
0
        public static void UseWebServerFileSystemStorage(
            this DownrContentProviderConfigurator configurator)
        {
            IYamlIndexer yamlIndexer = (IYamlIndexer)
                                       configurator.Builder.ApplicationServices.GetService(typeof(IYamlIndexer));

            yamlIndexer.IndexContentFiles();
        }
Пример #2
0
        public static void UseAzureStorage(
            this DownrContentProviderConfigurator configurator)
        {
            IYamlIndexer yamlIndexer = (IYamlIndexer)
                                       configurator.Builder.ApplicationServices.GetService(typeof(IYamlIndexer));

            IOptions <AzureStorageConfiguration> config = (IOptions <AzureStorageConfiguration>)
                                                          configurator.Builder.ApplicationServices.GetService(typeof(IOptions <AzureStorageConfiguration>));

            yamlIndexer.IndexContentFiles();
        }