Browse Source
Merge pull request #13054 from abpframework/minio
Use the appropriate `Builder` object and call `Build`.
pull/13064/head
Engincan VESKE
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
2 deletions
-
framework/src/Volo.Abp.BlobStoring.Minio/Volo/Abp/BlobStoring/Minio/MinioBlobProvider.cs
|
|
@ -95,14 +95,17 @@ public class MinioBlobProvider : BlobProviderBase, ITransientDependency |
|
|
protected virtual MinioClient GetMinioClient(BlobProviderArgs args) |
|
|
protected virtual MinioClient GetMinioClient(BlobProviderArgs args) |
|
|
{ |
|
|
{ |
|
|
var configuration = args.Configuration.GetMinioConfiguration(); |
|
|
var configuration = args.Configuration.GetMinioConfiguration(); |
|
|
var client = new MinioClient(configuration.EndPoint, configuration.AccessKey, configuration.SecretKey); |
|
|
|
|
|
|
|
|
var client = new MinioClient() |
|
|
|
|
|
.WithEndpoint(configuration.EndPoint) |
|
|
|
|
|
.WithCredentials(configuration.AccessKey, configuration.SecretKey); |
|
|
|
|
|
|
|
|
if (configuration.WithSSL) |
|
|
if (configuration.WithSSL) |
|
|
{ |
|
|
{ |
|
|
client.WithSSL(); |
|
|
client.WithSSL(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
return client; |
|
|
return client.Build(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected virtual async Task CreateBucketIfNotExists(MinioClient client, string containerName) |
|
|
protected virtual async Task CreateBucketIfNotExists(MinioClient client, string containerName) |
|
|
|