/// <summary> /// 初始化<see cref="ConnectionFactory"/> /// </summary> /// <param name="options">云片的配置选项</param> /// <param name="client">将被用来跟云片交互的 <see cref="HttpClient"/> </param> public ConnectionFactory(YunpianOptions options, HttpClient client) { _options = options; _client = client; }
/// <summary> /// 初始化<see cref="ConnectionFactory"/> /// </summary> /// <param name="options">云片的配置选项</param> public ConnectionFactory(YunpianOptions options) : this(options, _defaultClient) { }