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

◆ Remove() [2/2]

void System.Net.CredentialCache.Remove ( Uri? uriPrefix,
string? authType )
inline

Definition at line 227 of file CredentialCache.cs.

228 {
229 if (uriPrefix == null || authType == null)
230 {
231 return;
232 }
233 if (_cache == null)
234 {
235 if (NetEventSource.Log.IsEnabled())
236 {
237 NetEventSource.Info(this, "Short-circuiting because the dictionary is null.", "Remove");
238 }
239 return;
240 }
241 _version++;
242 CredentialKey credentialKey = new CredentialKey(uriPrefix, authType);
243 if (NetEventSource.Log.IsEnabled())
244 {
245 NetEventSource.Info(this, $"Removing key:[{credentialKey}]", "Remove");
246 }
248 }
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
Dictionary< CredentialKey, NetworkCredential > _cache

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