public static IServiceCollection AddAmazonS3StorageManager(this IServiceCollection services, AmazonOptions options) { services.AddSingleton <IFileStorageManager>(new AmazonS3StorageManager(options)); return(services); }
public static IServiceCollection AddAmazonS3StorageManager(this IServiceCollection services, AmazonOptions options) { services.AddSingleton <IFileStorageManager>(new AmazonS3StorageManager( options.AccessKeyID, options.SecretAccessKey, options.BucketName, options.RegionEndpoint)); return(services); }