// Too low version of the library (likely pre-2.0)
NotSupportedReason=$"MsQuicOpenVersion for version {s_minMsQuicVersion.Major} returned {openStatus} status code.";
if(NetEventSource.Log.IsEnabled())
{
NetEventSource.Info(null,NotSupportedReason);
}
return;
}
...
...
@@ -144,9 +154,10 @@ static MsQuicApi()
if(version<s_minMsQuicVersion)
{
NotSupportedReason=$"Incompatible MsQuic library version '{version}', expecting higher than '{s_minMsQuicVersion}'.";
if(NetEventSource.Log.IsEnabled())
{
NetEventSource.Info(null,$"Incompatible MsQuic library version '{version}', expecting higher than '{s_minMsQuicVersion}'.");
NetEventSource.Info(null,NotSupportedReason);
}
return;
}
...
...
@@ -167,9 +178,10 @@ static MsQuicApi()
// Implies windows platform, check TLS1.3 availability
if(!IsWindowsVersionSupported())
{
NotSupportedReason=$"Current Windows version ({Environment.OSVersion}) is not supported by QUIC. Minimal supported version is {s_minWindowsVersion}.";
if(NetEventSource.Log.IsEnabled())
{
NetEventSource.Info(null,$"Current Windows version ({Environment.OSVersion}) is not supported by QUIC. Minimal supported version is {s_minWindowsVersion}");
NetEventSource.Info(null,NotSupportedReason);
}
return;
}
...
...
@@ -208,11 +220,6 @@ private static bool TryOpenMsQuic(out QUIC_API_TABLE* apiTable, out int openStat