Skip to content

Commit

Permalink
Sync shared code from aspnetcore (dotnet#70236)
Browse files Browse the repository at this point in the history
Co-authored-by: JamesNK <[email protected]>
  • Loading branch information
github-actions[bot] and JamesNK authored Jun 5, 2022
1 parent dd962e5 commit bad2ab0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,19 @@ internal enum Http3SettingType : long
/// The maximum number of request streams that can be blocked waiting for QPack instructions. The default is 0.
/// https://tools.ietf.org/html/draft-ietf-quic-qpack-11#section-5
/// </summary>
QPackBlockedStreams = 0x7
QPackBlockedStreams = 0x7,

/// <summary>
/// SETTINGS_ENABLE_WEBTRANSPORT, default is 0 (off)
/// https://www.ietf.org/archive/id/draft-ietf-webtrans-http3-01.html#name-http-3-settings-parameter-r
/// </summary>
EnableWebTransport = 0x2b603742,

/// <summary>
/// H3_DATAGRAM, default is 0 (off)
/// indicates that the server suppprts sending individual datagrams over Http/3
/// rather than just streams.
/// </summary>
H3Datagram = 0xffd277
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,7 @@ private unsafe void WriteEvent(int eventId, string? arg1, string? arg2, byte[]?
}

[NonEvent]
[UnconditionalSuppressMessage("Trimming", "IL2026", Justification = "Can safely serialize primitive arguments.")]
private unsafe void WriteEvent(int eventId, string? arg1, int arg2, int arg3, int arg4)
{
if (IsEnabled())
Expand Down Expand Up @@ -568,6 +569,7 @@ private unsafe void WriteEvent(int eventId, string? arg1, int arg2, int arg3, in
}

[NonEvent]
[UnconditionalSuppressMessage("Trimming", "IL2026", Justification = "Can safely serialize primitive arguments.")]
private unsafe void WriteEvent(int eventId, string? arg1, int arg2, string? arg3)
{
if (IsEnabled())
Expand Down Expand Up @@ -603,6 +605,7 @@ private unsafe void WriteEvent(int eventId, string? arg1, int arg2, string? arg3
}

[NonEvent]
[UnconditionalSuppressMessage("Trimming", "IL2026", Justification = "Can safely serialize primitive arguments.")]
private unsafe void WriteEvent(int eventId, string? arg1, string? arg2, int arg3)
{
if (IsEnabled())
Expand Down Expand Up @@ -638,6 +641,7 @@ private unsafe void WriteEvent(int eventId, string? arg1, string? arg2, int arg3
}

[NonEvent]
[UnconditionalSuppressMessage("Trimming", "IL2026", Justification = "Can safely serialize primitive arguments.")]
private unsafe void WriteEvent(int eventId, string? arg1, string? arg2, string? arg3, int arg4)
{
if (IsEnabled())
Expand Down

0 comments on commit bad2ab0

Please sign in to comment.