public static void UseWebServerFileSystemStorage( this DownrContentProviderConfigurator configurator) { IYamlIndexer yamlIndexer = (IYamlIndexer) configurator.Builder.ApplicationServices.GetService(typeof(IYamlIndexer)); yamlIndexer.IndexContentFiles(); }
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(); }