3 instantiations of Key
Microsoft.AspNetCore.Mvc.Core (3)
ModelBinding\ModelBinderFactory.cs (3)
116
var key = new
Key
(providerContext.Metadata, token);
184
_cache.TryAdd(new
Key
(metadata, cacheToken), binder);
197
return _cache.TryGetValue(new
Key
(metadata, cacheToken), out binder);
8 references to Key
Microsoft.AspNetCore.Mvc.Core (8)
ModelBinding\ModelBinderFactory.cs (8)
26
private readonly ConcurrentDictionary<
Key
, IModelBinder> _cache;
43
_cache = new ConcurrentDictionary<
Key
, IModelBinder>();
116
var
key = new Key(providerContext.Metadata, token);
224
Visited = new Dictionary<
Key
, IModelBinder?>();
246
public Dictionary<
Key
, IModelBinder?> Visited { get; }
280
private readonly struct Key : IEquatable<
Key
>
291
public bool Equals(
Key
other)
298
return obj is
Key
other && Equals(other);