Beispiel #1
0
        public AliyunOssStorageProvider(AliyunOssConfig cfg)
        {
            _cfg       = cfg;
            _ossClient = new OssClient(cfg.Endpoint, cfg.AccessKeyId, cfg.AccessKeySecret);

            _baseUrl = $"https://{cfg.BucketName}.{cfg.Endpoint}";
        }
 public AliyunOssStorageProvider(AliyunOssConfig cfg)
 {
     _ossClient = new OssClient(cfg.Endpoint, cfg.AccessKeyId, cfg.AccessKeySecret);
     _baseUrl   = "https://{0}." + cfg.Endpoint + "/{1}";
 }