1 instantiation of WebTransportSession
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http3\Http3Connection.cs (1)
948
session = new
WebTransportSession
(this, http3Stream);
19 references to WebTransportSession
Microsoft.AspNetCore.Server.Kestrel.Core (19)
Internal\Http3\Http3Connection.cs (10)
43
private readonly Dictionary<long,
WebTransportSession
>? _webtransportSessions;
186
foreach (
var
session in GetWebTransportSessions())
550
foreach (
var
session in GetWebTransportSessions())
659
if (!_webtransportSessions.TryGetValue(correspondingSession, out
var
session))
939
internal
WebTransportSession
OpenNewWebTransportSession(Http3Stream http3Stream)
943
WebTransportSession
session;
954
internal void RemoveWebTransportSession(
WebTransportSession
session)
958
if (_webtransportSessions.TryGetValue(session.SessionId, out
var
existingSession) &&
966
private
WebTransportSession
[] GetWebTransportSessions()
970
var sessions = new
WebTransportSession
[_webtransportSessions.Count];
Internal\Http3\Http3Stream.cs (6)
942
if (string.Equals(HttpRequestHeaders.HeaderProtocol,
WebTransportSession
.WebTransportProtocolValue, StringComparison.Ordinal))
945
if (((AspNetCore.Http.IHeaderDictionary)HttpRequestHeaders).TryGetValue(
WebTransportSession
.CurrentSupportedVersion, out var version) && string.Equals(version,
WebTransportSession
.VersionEnabledIndicator, StringComparison.Ordinal))
1329
throw new InvalidOperationException(CoreStrings.FormatFailedToNegotiateCommonWebTransportVersion(
WebTransportSession
.CurrentSupportedVersion));
1335
var version =
WebTransportSession
.CurrentSupportedVersionSuffix;
1340
ResponseHeaders[
WebTransportSession
.VersionHeaderPrefix] = version;
Internal\Http3\Http3StreamContext.cs (1)
39
public
WebTransportSession
? WebTransportSession { get; set; }
Internal\WebTransport\WebTransportSession.cs (2)
57
var
session = (
WebTransportSession
)state!;