1 instantiation of MsQuicApi
System.Net.Quic (1)
System\Net\Quic\Internal\MsQuicApi.cs (1)
218return new MsQuicApi(apiTable);
53 references to MsQuicApi
System.Net.Quic (53)
System\Net\Quic\Internal\MsQuicApi.cs (7)
54private static readonly Lazy<MsQuicApi> _api = new Lazy<MsQuicApi>(AllocateMsQuicApi); 55internal static MsQuicApi Api => _api.Value; 93loaded = NativeLibrary.TryLoad(Interop.Libraries.MsQuic, typeof(MsQuicApi).Assembly, DllImportSearchPath.AssemblyDirectory, out msQuicHandle); 98loaded = NativeLibrary.TryLoad($"{Interop.Libraries.MsQuic}.{s_minMsQuicVersion.Major}", typeof(MsQuicApi).Assembly, null, out msQuicHandle) || 99NativeLibrary.TryLoad(Interop.Libraries.MsQuic, typeof(MsQuicApi).Assembly, null, out msQuicHandle); 209private 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)
47public static bool IsSupported => MsQuicApi.IsQuicSupported; 59throw new PlatformNotSupportedException(SR.Format(SR.SystemNetQuic_PlatformNotSupported, MsQuicApi.NotSupportedReason)); 246ThrowHelper.ThrowIfMsQuicError(MsQuicApi.Api.ConnectionOpen( 247MsQuicApi.Api.Registration, 280MsQuicApi.Api.SetCallbackHandler( 354ThrowHelper.ThrowIfMsQuicError(MsQuicApi.Api.ConnectionStart( 398ThrowHelper.ThrowIfMsQuicError(MsQuicApi.Api.ConnectionSetConfiguration( 515MsQuicApi.Api.ConnectionShutdown( 700MsQuicApi.Api.ConnectionShutdown( 710MsQuicApi.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)
39public static bool IsSupported => MsQuicApi.IsQuicSupported; 51throw new PlatformNotSupportedException(SR.Format(SR.SystemNetQuic_PlatformNotSupported, MsQuicApi.NotSupportedReason)); 121ThrowHelper.ThrowIfMsQuicError(MsQuicApi.Api.ListenerOpen( 122MsQuicApi.Api.Registration, 151ThrowHelper.ThrowIfMsQuicError(MsQuicApi.Api.ListenerStart( 423MsQuicApi.Api.ListenerStop(_handle);
System\Net\Quic\QuicStream.cs (8)
165int status = MsQuicApi.Api.StreamOpen( 212MsQuicApi.Api.SetCallbackHandler( 250int status = MsQuicApi.Api.StreamStart( 328ThrowHelper.ThrowIfMsQuicError(MsQuicApi.Api.StreamReceiveSetEnabled( 404int status = MsQuicApi.Api.StreamSend( 472ThrowHelper.ThrowIfMsQuicError(MsQuicApi.Api.StreamShutdown( 518ThrowHelper.ThrowIfMsQuicError(MsQuicApi.Api.StreamShutdown( 740int status = MsQuicApi.Api.StreamShutdown(