Skip to content

Commit

Permalink
Add WS2022 to OsSupport check for Bidirectional Streaming
Browse files Browse the repository at this point in the history
  • Loading branch information
liveans committed Jul 12, 2024
1 parent b8ac8b2 commit 3025c18
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ public BidirectionStreamingTest(ITestOutputHelper output) : base(output)

// Build number suggested by the WinHttp team.
// It can be reduced if bidirectional streaming is backported.
public static bool OsSupportsWinHttpBidirectionalStreaming => Environment.OSVersion.Version >= new Version(10, 0, 22357, 0);
public static bool OsSupportsWinHttpBidirectionalStreaming => Environment.OSVersion.Version >= new Version(10, 0, 22357, 0)
|| Environment.OSVersion.Version == new Version(10, 0, 20348, 0); // This is required for WS2022
// because WINHTTP_FLAG_AUTOMATIC_CHUNKING is backported to WS2022.

public static bool TestsEnabled => OsSupportsWinHttpBidirectionalStreaming && PlatformDetection.SupportsAlpn;

Expand Down

0 comments on commit 3025c18

Please sign in to comment.