Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public FileSystemStorageProvider(FileSystemStorageSettings settings)
 {
     this.settings = settings;
 }