Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<EnableLibraryImportGenerator>true</EnableLibraryImportGenerator>
<!-- the res/xml/network_security_config.xml file comes from the System.Net.TestData package -->
<IncludeNetworkSecurityConfig Condition="'$(TargetOS)' == 'Android'">true</IncludeNetworkSecurityConfig>
<EnablePreviewFeatures>true</EnablePreviewFeatures>
</PropertyGroup>
<ItemGroup>
<Compile Include="AssemblyInfo.cs" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System.IO;
using System.Linq;
using System.Net.Sockets;
using System.Net.Quic;
using System.Net.Test.Common;
using System.Security.Authentication;
using System.Security.Cryptography;
Expand Down Expand Up @@ -260,5 +261,15 @@ static string ProtocolToString(SslProtocols? protocol)

return name;
}

[ModuleInitializer]
internal static void InitializeQuic()
{
// This will load Quic (if supported) to avoid interference with RemoteExecutor
// See https://github.com/dotnet/runtime/pull/75424 for more details
// IsSupported currently does not unload lttng. If it does in the future,
// we may need to call some real Quic API here to get everything loaded properly
_ = OperatingSystem.IsLinux() && QuicConnection.IsSupported;
}
}
}