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