コード例 #1
0
 /// <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;
 }
コード例 #2
0
 /// <summary>
 /// 初始化<see cref="ConnectionFactory"/>
 /// </summary>
 /// <param name="options">云片的配置选项</param>
 public ConnectionFactory(YunpianOptions options) : this(options, _defaultClient)
 {
 }