public MinioBlobImageStorage(ILogger <MinioBlobImageStorage> logger, MinioBlobConfiguration blobConfiguration) { _logger = logger; _client = new(blobConfiguration.EndPoint, blobConfiguration.AccessKey, blobConfiguration.SecretKey); if (blobConfiguration.WithSSL) { _client = _client.WithSSL(); } _bucketName = blobConfiguration.BucketName; logger.LogInformation($"Created {nameof(MinioBlobImageStorage)} at {blobConfiguration.EndPoint}"); }
public MinioBlobImageStorage(ILogger <MinioBlobImageStorage> logger, MinioBlobConfiguration blobConfiguration) { try { _logger = logger; _client = new(blobConfiguration.EndPoint, blobConfiguration.AccessKey, blobConfiguration.SecretKey); if (blobConfiguration.WithSSL) { _client = _client.WithSSL(); } _bucketName = blobConfiguration.BucketName; logger.LogInformation($"Created {nameof(MinioBlobImageStorage)} at {blobConfiguration.EndPoint}"); } catch (Exception e) { logger.LogError(e, $"Failed to create {nameof(MinioBlobImageStorage)}"); throw; } }