public DownloadService(DownloadConfiguration options) : this() { if (options != null) { Package.Options = options.Clone() as DownloadConfiguration; } }
public DownloadService(DownloadConfiguration options = null) { Package = new DownloadPackage { Options = options?.Clone() as DownloadConfiguration ?? new DownloadConfiguration() }; ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12; ServicePointManager.Expect100Continue = false; // accept the request for POST, PUT and PATCH verbs ServicePointManager.DefaultConnectionLimit = 1000; ServicePointManager.MaxServicePointIdleTime = 1000; }