public static void WithAzureStorage( this DownrServicesCollectionExtensionsConfigurator configurator) { configurator.Services.AddSingleton <IYamlIndexer, AzureStorageYamlIndexer>(); configurator.Services.Configure <AzureStorageConfiguration>(configurator.Configuration.GetSection("downr.AzureStorage")); }
public static void WithWebServerFileSystemStorage( this DownrServicesCollectionExtensionsConfigurator configurator) { configurator.Services.AddSingleton <IYamlIndexer, WebServerFileSystemContentIndexer>(); }