1 instantiation of MsQuicApi
System.Net.Quic (1)
System\Net\Quic\Internal\MsQuicApi.cs (1)
233return new MsQuicApi(apiTable);
54 references to MsQuicApi
System.Net.Quic (54)
System\Net\Quic\Internal\MsQuicApi.cs (8)
54private static readonly Lazy<MsQuicApi> _api = new Lazy<MsQuicApi>(AllocateMsQuicApi); 55internal static MsQuicApi Api => _api.Value; 97string path = typeof(MsQuicApi).Assembly.Location is string assemblyLocation && !string.IsNullOrEmpty(assemblyLocation) 108loaded = NativeLibrary.TryLoad(path, typeof(MsQuicApi).Assembly, DllImportSearchPath.LegacyBehavior, out msQuicHandle); 113loaded = NativeLibrary.TryLoad($"{Interop.Libraries.MsQuic}.{s_minMsQuicVersion.Major}", typeof(MsQuicApi).Assembly, null, out msQuicHandle) || 114NativeLibrary.TryLoad(Interop.Libraries.MsQuic, typeof(MsQuicApi).Assembly, null, out msQuicHandle); 224private static MsQuicApi AllocateMsQuicApi()
System\Net\Quic\Internal\MsQuicConfiguration.cs (9)
27if (MsQuicApi.UsesSChannelBackend) 187if (!MsQuicApi.UsesSChannelBackend) 202if (!MsQuicApi.UsesSChannelBackend && certificate is X509Certificate2 cert && intermediates is null) 215ThrowHelper.ThrowIfMsQuicError(MsQuicApi.Api.ConfigurationOpen( 216MsQuicApi.Api.Registration, 238status = MsQuicApi.Api.ConfigurationLoadCredential(configurationHandle, &config); 240else if (MsQuicApi.UsesSChannelBackend) 244status = MsQuicApi.Api.ConfigurationLoadCredential(configurationHandle, &config); 276status = MsQuicApi.Api.ConfigurationLoadCredential(configurationHandle, &config);
System\Net\Quic\Internal\MsQuicHelpers.cs (2)
66int status = MsQuicApi.Api.GetParam( 85int status = MsQuicApi.Api.SetParam(
System\Net\Quic\Internal\MsQuicSafeHandle.cs (5)
49SafeHandleType.Registration => MsQuicApi.Api.ApiTable->RegistrationClose, 50SafeHandleType.Configuration => MsQuicApi.Api.ApiTable->ConfigurationClose, 51SafeHandleType.Listener => MsQuicApi.Api.ApiTable->ListenerClose, 52SafeHandleType.Connection => MsQuicApi.Api.ApiTable->ConnectionClose, 53SafeHandleType.Stream => MsQuicApi.Api.ApiTable->StreamClose,
System\Net\Quic\NetEventSource.Quic.Counters.cs (2)
215if (!MsQuicApi.IsQuicSupported) 226MsQuicApi.Api.ApiTable->GetParam(null, QUIC_PARAM_GLOBAL_PERF_COUNTERS, &size, (byte*)pCounters);
System\Net\Quic\QuicConnection.cs (10)
53public static bool IsSupported => MsQuicApi.IsQuicSupported; 65throw new PlatformNotSupportedException(SR.Format(SR.SystemNetQuic_PlatformNotSupported, MsQuicApi.NotSupportedReason ?? "General loading failure.")); 322ThrowHelper.ThrowIfMsQuicError(MsQuicApi.Api.ConnectionOpen( 323MsQuicApi.Api.Registration, 357MsQuicApi.Api.SetCallbackHandler( 433ThrowHelper.ThrowIfMsQuicError(MsQuicApi.Api.ConnectionStart( 478ThrowHelper.ThrowIfMsQuicError(MsQuicApi.Api.ConnectionSetConfiguration( 618MsQuicApi.Api.ConnectionShutdown( 830MsQuicApi.Api.ConnectionShutdown( 840MsQuicApi.Api.ConnectionShutdown(
System\Net\Quic\QuicConnection.SslConnectionOptions.cs (4)
85if (MsQuicApi.UsesSChannelBackend) 118if (MsQuicApi.SupportsAsyncCertValidation) 157if (MsQuicApi.SupportsAsyncCertValidation) 159int status = MsQuicApi.Api.ConnectionCertificateValidationComplete(
System\Net\Quic\QuicListener.cs (6)
43public static bool IsSupported => MsQuicApi.IsQuicSupported; 55throw new PlatformNotSupportedException(SR.Format(SR.SystemNetQuic_PlatformNotSupported, MsQuicApi.NotSupportedReason ?? "General loading failure.")); 125ThrowHelper.ThrowIfMsQuicError(MsQuicApi.Api.ListenerOpen( 126MsQuicApi.Api.Registration, 155ThrowHelper.ThrowIfMsQuicError(MsQuicApi.Api.ListenerStart( 423MsQuicApi.Api.ListenerStop(_handle);
System\Net\Quic\QuicStream.cs (8)
172ThrowHelper.ThrowIfMsQuicError(MsQuicApi.Api.StreamOpen( 218MsQuicApi.Api.SetCallbackHandler( 260int status = MsQuicApi.Api.StreamStart( 336ThrowHelper.ThrowIfMsQuicError(MsQuicApi.Api.StreamReceiveSetEnabled( 413int status = MsQuicApi.Api.StreamSend( 481ThrowHelper.ThrowIfMsQuicError(MsQuicApi.Api.StreamShutdown( 527ThrowHelper.ThrowIfMsQuicError(MsQuicApi.Api.StreamShutdown( 754int status = MsQuicApi.Api.StreamShutdown(