Implemented interface member:
2 writes to Current
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
src\Servers\Kestrel\shared\Http2HeadersEnumerator.cs (2)
141
Current
= result ? new KeyValuePair<string, string>(key, _stringValuesEnumerator.Current!) : default;
151
Current
= new KeyValuePair<string, string>(name, value.ToString());
20 references to Current
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (20)
Http2\Http2HeadersEnumeratorTests.cs (16)
94
Assert.Equal("Name1", e.
Current
.Key);
95
Assert.Equal("Value1", e.
Current
.Value);
99
Assert.Equal("Name2", e.
Current
.Key);
100
Assert.Equal("Value2-1", e.
Current
.Value);
104
Assert.Equal("Name2", e.
Current
.Key);
105
Assert.Equal("Value2-2", e.
Current
.Value);
119
Assert.Equal("Grpc-Status", e.
Current
.Key);
120
Assert.Equal("1", e.
Current
.Value);
124
Assert.Equal("Name1", e.
Current
.Key);
125
Assert.Equal("Value1", e.
Current
.Value);
129
Assert.Equal("Name2", e.
Current
.Key);
130
Assert.Equal("Value2-1", e.
Current
.Value);
134
Assert.Equal("Name2", e.
Current
.Key);
135
Assert.Equal("Value2-2", e.
Current
.Value);
146
headers.Add(CreateHeaderResult(enumerator.HPackStaticTableId, enumerator.
Current
.Key, enumerator.
Current
.Value));
src\Servers\Kestrel\shared\HPackHeaderWriter.cs (2)
124
var name = headersEnumerator.
Current
.Key;
125
var value = headersEnumerator.
Current
.Value;
src\Servers\Kestrel\shared\Http2HeadersEnumerator.cs (2)
44
object IEnumerator.Current =>
Current
;
87
if (_hasMultipleValues && MoveNextOnStringEnumerator(
Current
.Key))