Definition at line 130 of file SslSessionsCache.cs.
131 {
133 {
135 {
136 System.
Net.
NetEventSource.
Info(
null,
$"Refused to cache an Invalid Handle {creds}, Current Cache Count = {s_cachedCreds.Count}",
"CacheCredential");
137 }
138 return;
139 }
143 {
145 {
148 {
151 {
154 {
156 }
158 }
159 }
161 {
162 System.
Net.
NetEventSource.
Info(
null,
$"CacheCredential() (locked retry) Found already cached Handle = {cachedCredential}",
"CacheCredential");
163 }
164 return;
165 }
166 }
168 {
169 System.
Net.
NetEventSource.
Info(
null,
$"CacheCredential() Ignoring incoming handle = {creds} since found already cached Handle = {cachedCredential}",
"CacheCredential");
170 }
172 {
174 {
176 for (
int i = 0;
i <
array.Length;
i++)
177 {
179 SafeFreeCredentials target =
value.Target;
180 SafeCredentialReference
value2;
181 if (target == null)
182 {
184 }
185 else
186 {
188 value = SafeCredentialReference.CreateReference(target);
190 {
192 }
193 else
194 {
196 }
197 }
198 }
200 {
202 }
203 }
204 }
205 }
static readonly System.Net.NetEventSource Log
static void Info(object thisOrContextObject, FormattableString formattableString=null, [CallerMemberName] string memberName=null)
static readonly ConcurrentDictionary< SslCredKey, SafeCredentialReference > s_cachedCreds
static SafeFreeCredentials GetCachedCredential(SslCredKey key)
References System.array, System.Net.Security.SafeCredentialReference.CreateReference(), System.Net.Security.SslSessionsCache.GetCachedCredential(), System.Net.NetEventSource.Info(), System.key, System.Net.NetEventSource.Log, System.Net.Security.SslSessionsCache.s_cachedCreds, and System.value.
Referenced by System.Net.Security.SecureChannel.GenerateToken().