You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xml/System.Net/CookieContainer.xml
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -79,6 +79,20 @@
79
79
80
80
]]></format>
81
81
</remarks>
82
+
<threadsafe>
83
+
<formattype="text/markdown"><![CDATA[
84
+
85
+
## Thread Safety
86
+
87
+
The methods for adding and retrieving <xref:System.Net.Cookie> instances to/from a <xref:System.Net.CookieContainer> are thread-safe and may be used concurrently from multiple threads.
88
+
89
+
> [!NOTE]
90
+
> Regardless of thread-safety, unanticipated sharing of <xref:System.Net.CookieContainer> may lead to issues when working with <xref:System.Net.Http.HttpClient> and <xref:System.Net.Http.HttpClientHandler> or <xref:System.Net.Http.SocketsHttpHandler>.
91
+
> One such problem is isolation: parts of the application that not intended to share cookies may inadvertently do so.
92
+
> It is not recommended to use cookies together with <xref:System.Net.Http.IHttpClientFactory>.
0 commit comments