public static IServiceCollection AddFileSystemStorage(this IServiceCollection services, Action <FileSystemStorageSettings> configuration) { var settings = new FileSystemStorageSettings(); configuration?.Invoke(settings); services.AddSingleton(settings); services.AddScoped <IStorageProvider, FileSystemStorageProvider>(); return(services); }
public FileSystemStorageProvider(FileSystemStorageSettings settings) { this.settings = settings; }