using Qiniu.Storage; using System; using System.Collections.Generic; using System.Text; namespace Qiniu { public class FileServiceOptions { public void CopyFrom(FileServiceOptions options) { AccessKey = options.AccessKey; SecretKey = options.SecretKey; Bucket = options.Bucket; BasePath = options.BasePath; Domain = options.Domain; ChunkUnit = options.ChunkUnit; Zone = options.Zone; UseCdnDomains = options.UseCdnDomains; UseHttps = options.UseHttps; PutThreshold = options.PutThreshold; MaxRetryTimes = options.MaxRetryTimes; } /// /// Access Key /// public string AccessKey { get; set; } /// /// Secret Key /// public string SecretKey { get; set; } /// /// 空间名称 /// public string Bucket { get; set; } /// /// 基本目录 /// public string BasePath { get; set; } /// /// 域名 /// public string Domain { get; set; } /// /// /// public ChunkUnit ChunkUnit { get; set; } /// /// /// public string Zone { get; set; } /// /// /// public bool UseHttps { get; set; } /// /// /// public bool UseCdnDomains { get; set; } /// /// /// public int? PutThreshold { get; set; } /// /// /// public int? MaxRetryTimes { get; set; } } }