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

◆ Add() [2/2]

void System.Net.CredentialCache.Add ( Uri uriPrefix,
string authType,
NetworkCredential cred )
inline

Definition at line 165 of file CredentialCache.cs.

166 {
167 if (uriPrefix == null)
168 {
169 throw new ArgumentNullException("uriPrefix");
170 }
171 if (authType == null)
172 {
173 throw new ArgumentNullException("authType");
174 }
175 if (cred is SystemNetworkCredential && !string.Equals(authType, "NTLM", StringComparison.OrdinalIgnoreCase) && !string.Equals(authType, "Kerberos", StringComparison.OrdinalIgnoreCase) && !string.Equals(authType, "Negotiate", StringComparison.OrdinalIgnoreCase))
176 {
178 }
179 _version++;
180 CredentialKey credentialKey = new CredentialKey(uriPrefix, authType);
181 if (NetEventSource.Log.IsEnabled())
182 {
183 NetEventSource.Info(this, $"Adding key:[{credentialKey}], cred:[{cred.Domain}],[{cred.UserName}]", "Add");
184 }
185 if (_cache == null)
186 {
188 }
190 }
void Add(TKey key, TValue value)
Dictionary< CredentialKey, NetworkCredential > _cache
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string net_nodefaultcreds
Definition SR.cs:44
Definition SR.cs:7

References System.Net.CredentialCache._cache, System.Net.CredentialCache._version, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Net.Equals, System.SR.Format(), System.Net.NetEventSource.Info(), System.Net.NetEventSource.Log, and System.SR.net_nodefaultcreds.