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