Пример #1
0
 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();
     }
 }
Пример #2
0
        public Task SetConfiguration(MinioConfiguration config)
        {
            this.config = config;

            return(Task.CompletedTask);
        }