20 references to Protocol
InMemory.FunctionalTests (1)
Http2\TlsTests.cs (1)
45
Assert.Equal(tlsFeature.ApplicationProtocol, SslApplicationProtocol.Http2.
Protocol
);
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\TlsConnectionFeature.cs (1)
47
public ReadOnlyMemory<byte> ApplicationProtocol => _sslStream.NegotiatedApplicationProtocol.
Protocol
;
Sockets.FunctionalTests (2)
src\Servers\Kestrel\test\FunctionalTests\Http2\HandshakeTests.cs (2)
73
Assert.True(SslApplicationProtocol.Http2.
Protocol
.Span.SequenceEqual(tlsFeature.ApplicationProtocol.Span),
101
Assert.True(SslApplicationProtocol.Http2.
Protocol
.Span.SequenceEqual(tlsFeature.ApplicationProtocol.Span),
System.Net.Quic (3)
System\Net\Quic\Internal\MsQuicConfiguration.Cache.cs (1)
123
hash.AddBytes(protocol.
Protocol
.Span);
System\Net\Quic\Internal\MsQuicConfiguration.cs (1)
214
msquicBuffers.Initialize(alpnProtocols, alpnProtocol => alpnProtocol.
Protocol
);
System\Net\Quic\QuicListener.cs (1)
146
alpnBuffers.Initialize(options.ApplicationProtocols, applicationProtocol => applicationProtocol.
Protocol
);
System.Net.Security (13)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (1)
740
if (clientProto.SequenceEqual(protocolList[i].
Protocol
.Span))
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Ssl.cs (6)
211
if (protocol.
Protocol
.Length == 0 || protocol.
Protocol
.Length > byte.MaxValue)
216
protocolSize += protocol.
Protocol
.Length + 1;
230
buffer[offset++] = (byte)protocol.
Protocol
.Length;
231
protocol.
Protocol
.Span.CopyTo(buffer.Slice(offset));
232
offset += protocol.
Protocol
.Length;
System\Net\Security\SslConnectionInfo.cs (3)
9
private static readonly byte[] s_http1 = SslApplicationProtocol.Http11.
Protocol
.ToArray();
10
private static readonly byte[] s_http2 = SslApplicationProtocol.Http2.
Protocol
.ToArray();
11
private static readonly byte[] s_http3 = SslApplicationProtocol.Http3.
Protocol
.ToArray();
System\Net\Security\TlsFrameHelper.cs (3)
707
if (protocol.SequenceEqual(SslApplicationProtocol.Http2.
Protocol
.Span))
716
else if (protocolLength == SslApplicationProtocol.Http11.
Protocol
.Length &&
717
protocol.SequenceEqual(SslApplicationProtocol.Http11.
Protocol
.Span))