private ICertificate GetCertificate(Options.IBucketOption bucket) { var certificate = bucket?.Certificate; if (string.IsNullOrWhiteSpace(certificate)) { certificate = _configuration?.Certificate; } if (string.IsNullOrWhiteSpace(certificate)) { return(Aliyun.Configuration.Instance.Certificates.Default); } return(Aliyun.Configuration.Instance.Certificates.Get(certificate)); }
private ServiceCenterName GetRegion(Options.IBucketOption bucket) { return(bucket?.Region ?? _configuration?.Region ?? Aliyun.Configuration.Instance.Name); }