wasSharp – Diff between revs 27 and 30

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 27 Rev 30
Line 19... Line 19...
19 // Copyright (C) 2014 Wizardry and Steamworks - License: GNU GPLv3 // 19 // Copyright (C) 2014 Wizardry and Steamworks - License: GNU GPLv3 //
20 /////////////////////////////////////////////////////////////////////////// 20 ///////////////////////////////////////////////////////////////////////////
21 // <summary>A portable HTTP client.</summar> 21 // <summary>A portable HTTP client.</summar>
22 public class wasHTTPClient : IDisposable 22 public class wasHTTPClient : IDisposable
23 { 23 {
24 private readonly HttpClient HTTPClient; 24 private HttpClient HTTPClient;
25 private readonly string MediaType; 25 private readonly string MediaType;
Line 26... Line 26...
26   26  
27 public wasHTTPClient(ProductInfoHeaderValue userAgent, CookieContainer cookieContainer, string mediaType, 27 public wasHTTPClient(ProductInfoHeaderValue userAgent, CookieContainer cookieContainer, string mediaType,
28 uint timeout) : this(userAgent, cookieContainer, mediaType, null, null, timeout) 28 uint timeout) : this(userAgent, cookieContainer, mediaType, null, null, timeout)
Line 87... Line 87...
87 } 87 }
Line 88... Line 88...
88   88  
89 public void Dispose() 89 public void Dispose()
90 { 90 {
-   91 HTTPClient?.Dispose();
91 HTTPClient?.Dispose(); 92 HTTPClient = null;
Line 92... Line 93...
92 } 93 }
93   94  
94 /////////////////////////////////////////////////////////////////////////// 95 ///////////////////////////////////////////////////////////////////////////