Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Remove() [1/2]

void System.Net.CredentialCache.Remove ( string? host,
int port,
string? authenticationType )
inline

Definition at line 250 of file CredentialCache.cs.

251 {
252 if (host == null || authenticationType == null || port < 0)
253 {
254 return;
255 }
256 if (_cacheForHosts == null)
257 {
258 if (NetEventSource.Log.IsEnabled())
259 {
260 NetEventSource.Info(this, "Short-circuiting because the dictionary is null.", "Remove");
261 }
262 return;
263 }
264 _version++;
265 CredentialHostKey credentialHostKey = new CredentialHostKey(host, port, authenticationType);
266 if (NetEventSource.Log.IsEnabled())
267 {
268 NetEventSource.Info(this, $"Removing key:[{credentialHostKey}]", "Remove");
269 }
271 }
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
Dictionary< CredentialHostKey, NetworkCredential > _cacheForHosts

References System.Net.CredentialCache._cacheForHosts, System.Net.CredentialCache._version, System.Net.NetEventSource.Info(), System.Net.NetEventSource.Log, and System.Collections.Generic.Dictionary< TKey, TValue >.Remove().