Definition at line 192 of file CredentialCache.cs.
193 {
195 {
196 throw new ArgumentNullException("host");
197 }
199 {
200 throw new ArgumentNullException("authenticationType");
201 }
202 if (
host.Length == 0)
203 {
205 }
207 {
208 throw new ArgumentOutOfRangeException("port");
209 }
211 {
213 }
216 if (NetEventSource.Log.IsEnabled())
217 {
218 NetEventSource.Info(
this,
$"Adding key:[{credentialHostKey}], cred:[{credential.Domain}],[{credential.UserName}]",
"Add");
219 }
221 {
223 }
225 }
void Add(TKey key, TValue value)
Dictionary< CredentialHostKey, NetworkCredential > _cacheForHosts
static string Format(string resourceFormat, object p1)
static string net_nodefaultcreds
static string net_emptystringcall
References System.Net.CredentialCache._cacheForHosts, 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, System.SR.net_emptystringcall, and System.SR.net_nodefaultcreds.