コード例 #1
0
 /// <summary>
 /// Instantiate a new HTTP client with a defined cookie jar
 /// </summary>
 /// <param name="performerFactory">Factory for IRequestPerformer</param>
 /// <param name="cookies">A (shared) cookie jar</param>
 public Client(IRequestPerformerFactory performerFactory, ICookieJar cookies)
 {
     PerformerFactory = performerFactory;
     Cookies          = cookies;
 }
コード例 #2
0
 /// <summary>
 /// Instantiate a new HTTP client with an own cookie jar
 /// </summary>
 /// <param name="performerFactory">Factory for IRequestPerformer</param>
 public Client(IRequestPerformerFactory performerFactory)
 {
     PerformerFactory = performerFactory;
     Cookies          = new CookieJar();
 }