99 ExecutionProfile = QUIC_EXECUTION_PROFILE.QUIC_EXECUTION_PROFILE_LOW_LATENCY
115 System.
Net.
NetEventSource.
Info(
null, $
"Current Windows version ({Environment.OSVersion}) is not supported by QUIC. Minimal supported version is {MinWindowsVersion}",
".cctor");
static readonly System.Net.NetEventSource Log
static void Info(object thisOrContextObject, FormattableString formattableString=null, [CallerMemberName] string memberName=null)
MsQuicNativeMethods.StreamShutdownDelegate StreamShutdownDelegate
static bool IsQuicSupported
MsQuicNativeMethods.ConnectionOpenDelegate ConnectionOpenDelegate
MsQuicNativeMethods.StreamSendDelegate StreamSendDelegate
MsQuicNativeMethods.StreamCloseDelegate StreamCloseDelegate
MsQuicNativeMethods.ConnectionShutdownDelegate ConnectionShutdownDelegate
MsQuicNativeMethods.ConnectionSetConfigurationDelegate ConnectionSetConfigurationDelegate
static unsafe MsQuicApi()
MsQuicNativeMethods.StreamReceiveCompleteDelegate StreamReceiveCompleteDelegate
MsQuicNativeMethods.ListenerOpenDelegate ListenerOpenDelegate
MsQuicNativeMethods.RegistrationOpenDelegate RegistrationOpenDelegate
MsQuicNativeMethods.ConfigurationCloseDelegate ConfigurationCloseDelegate
SafeMsQuicRegistrationHandle Registration
MsQuicNativeMethods.ConnectionCloseDelegate ConnectionCloseDelegate
MsQuicNativeMethods.StreamReceiveSetEnabledDelegate StreamReceiveSetEnabledDelegate
MsQuicNativeMethods.ConfigurationLoadCredentialDelegate ConfigurationLoadCredentialDelegate
MsQuicNativeMethods.SetCallbackHandlerDelegate SetCallbackHandlerDelegate
static readonly Version MinWindowsVersion
MsQuicNativeMethods.ListenerStartDelegate ListenerStartDelegate
MsQuicNativeMethods.ConfigurationOpenDelegate ConfigurationOpenDelegate
MsQuicNativeMethods.ConnectionStartDelegate ConnectionStartDelegate
MsQuicNativeMethods.GetParamDelegate GetParamDelegate
unsafe MsQuicApi(MsQuicNativeMethods.NativeApi *vtable)
MsQuicNativeMethods.SetParamDelegate SetParamDelegate
static bool IsWindowsVersionSupported()
MsQuicNativeMethods.StreamStartDelegate StreamStartDelegate
MsQuicNativeMethods.ListenerStopDelegate ListenerStopDelegate
MsQuicNativeMethods.StreamOpenDelegate StreamOpenDelegate
MsQuicNativeMethods.RegistrationCloseDelegate RegistrationCloseDelegate
MsQuicNativeMethods.ListenerCloseDelegate ListenerCloseDelegate
delegate uint ConnectionOpenDelegate(SafeMsQuicRegistrationHandle registration, ConnectionCallbackDelegate handler, IntPtr context, out SafeMsQuicConnectionHandle connection)
delegate uint ConnectionStartDelegate(SafeMsQuicConnectionHandle connection, SafeMsQuicConfigurationHandle configuration, QUIC_ADDRESS_FAMILY family, [MarshalAs(UnmanagedType.LPUTF8Str)] string serverName, ushort serverPort)
delegate void ListenerCloseDelegate(IntPtr listener)
delegate void ConnectionShutdownDelegate(SafeMsQuicConnectionHandle connection, QUIC_CONNECTION_SHUTDOWN_FLAGS flags, long errorCode)
delegate void ConfigurationCloseDelegate(IntPtr configuration)
delegate uint RegistrationOpenDelegate(ref RegistrationConfig config, out SafeMsQuicRegistrationHandle registrationContext)
unsafe delegate uint SetParamDelegate(SafeHandle handle, QUIC_PARAM_LEVEL level, uint param, uint bufferLength, byte *buffer)
delegate uint ListenerOpenDelegate(SafeMsQuicRegistrationHandle registration, ListenerCallbackDelegate handler, IntPtr context, out SafeMsQuicListenerHandle listener)
delegate uint ConnectionSetConfigurationDelegate(SafeMsQuicConnectionHandle connection, SafeMsQuicConfigurationHandle configuration)
delegate uint StreamReceiveSetEnabledDelegate(SafeMsQuicStreamHandle stream, [MarshalAs(UnmanagedType.U1)] bool enabled)
delegate uint StreamStartDelegate(SafeMsQuicStreamHandle stream, QUIC_STREAM_START_FLAGS flags)
delegate void ListenerStopDelegate(SafeMsQuicListenerHandle listener)
delegate uint StreamOpenDelegate(SafeMsQuicConnectionHandle connection, QUIC_STREAM_OPEN_FLAGS flags, StreamCallbackDelegate handler, IntPtr context, out SafeMsQuicStreamHandle stream)
delegate void SetCallbackHandlerDelegate(SafeHandle handle, Delegate del, IntPtr context)
delegate uint StreamReceiveCompleteDelegate(SafeMsQuicStreamHandle stream, ulong bufferLength)
unsafe delegate uint ListenerStartDelegate(SafeMsQuicListenerHandle listener, QuicBuffer *alpnBuffers, uint alpnBufferCount, ref SOCKADDR_INET localAddress)
delegate uint StreamShutdownDelegate(SafeMsQuicStreamHandle stream, QUIC_STREAM_SHUTDOWN_FLAGS flags, long errorCode)
unsafe delegate uint StreamSendDelegate(SafeMsQuicStreamHandle stream, QuicBuffer *buffers, uint bufferCount, QUIC_SEND_FLAGS flags, IntPtr clientSendContext)
delegate uint ConfigurationLoadCredentialDelegate(SafeMsQuicConfigurationHandle configuration, ref CredentialConfig credConfig)
unsafe delegate uint ConfigurationOpenDelegate(SafeMsQuicRegistrationHandle registrationContext, QuicBuffer *alpnBuffers, uint alpnBufferCount, ref QuicSettings settings, uint settingsSize, IntPtr context, out SafeMsQuicConfigurationHandle configuration)
delegate void RegistrationCloseDelegate(IntPtr registrationContext)
unsafe delegate uint GetParamDelegate(SafeHandle handle, QUIC_PARAM_LEVEL level, uint param, ref uint bufferLength, byte *buffer)
delegate void StreamCloseDelegate(IntPtr stream)
delegate void ConnectionCloseDelegate(IntPtr connection)
static bool SuccessfulStatusCode(uint status)
static void ThrowIfFailed(uint status, string message=null, Exception innerException=null)
static bool IsWindowsVersionAtLeast(int major, int minor=0, int build=0, int revision=0)
static Delegate GetDelegateForFunctionPointer(IntPtr ptr, Type t)
static void Free(IntPtr handle)
static bool TryLoad(string libraryPath, out IntPtr handle)
static bool TryGetExport(IntPtr handle, string name, out IntPtr address)
DynamicallyAccessedMemberTypes