27 references to FormKey
Microsoft.AspNetCore.Components.Endpoints (27)
FormMapping\FormDataReader.cs (15)
17private readonly IReadOnlyDictionary<FormKey, StringValues> _readOnlyMemoryKeys; 26private IReadOnlyDictionary<FormKey, HashSet<FormKey>>? _formDictionaryKeysByPrefix; 30public FormDataReader(IReadOnlyDictionary<FormKey, StringValues> formCollection, CultureInfo culture, Memory<char> buffer) 37public FormDataReader(IReadOnlyDictionary<FormKey, StringValues> formCollection, CultureInfo culture, Memory<char> buffer, IFormFileCollection formFileCollection) 124internal IReadOnlyDictionary<FormKey, HashSet<FormKey>> ProcessFormKeys() 127var result = new Dictionary<FormKey, HashSet<FormKey>>(); 135foreach (var key in keys) 155result.Add(new FormKey(prefix), new HashSet<FormKey> { new FormKey(keyValue) }); 289private readonly HashSet<FormKey> _values; 294public FormKeyCollection(HashSet<FormKey> values) => _values = values; 304private HashSet<FormKey>.Enumerator _enumerator; 306public Enumerator(HashSet<FormKey>.Enumerator enumerator)
FormMapping\FormKey.cs (3)
9internal readonly struct FormKey(ReadOnlyMemory<char> value) : IEquatable<FormKey> 15public override readonly bool Equals(object? obj) => obj is FormKey prefix && Value.Equals(prefix.Value); 17public readonly bool Equals(FormKey other) =>
FormMapping\HttpContextFormValueMapper.cs (1)
125var dictionary = new Dictionary<FormKey, StringValues>();
FormMapping\PrefixResolver.cs (8)
10private readonly FormKey[] _sortedKeys; 15public PrefixResolver(IEnumerable<FormKey> readOnlyMemoryKeys, int count) 17_sortedKeys = ArrayPool<FormKey>.Shared.Rent(count); 20foreach (var key in readOnlyMemoryKeys) 41ArrayPool<FormKey>.Shared.Return(_sortedKeys); 45private class FormKeyComparer(bool checkPrefix) : IComparer<FormKey> 51public int Compare(FormKey x, FormKey y)