public MinioRepository(IConfigurationRoot config) { _config = config.ParseConfiguration(); _client = new MinioClient(_config.Endpoint, _config.AccessKey, _config.SecretKey); if (!string.IsNullOrEmpty(_config.Scheme) && _config.Scheme.ToLower() == "https") { _client.WithSSL(); } }
public Task SetConfiguration(MinioConfiguration config) { this.config = config; return(Task.CompletedTask); }