2 types derived from MsQuicSafeHandle
System.Net.Quic (2)
System\Net\Quic\Internal\MsQuicSafeHandle.cs (2)
85internal sealed class MsQuicContextSafeHandle : MsQuicSafeHandle 148internal sealed class MsQuicConfigurationSafeHandle : MsQuicSafeHandle, ISafeHandleCachable
1 instantiation of MsQuicSafeHandle
System.Net.Quic (1)
System\Net\Quic\Internal\MsQuicApi.cs (1)
50Registration = new MsQuicSafeHandle(handle, apiTable->RegistrationClose, SafeHandleType.Registration);
36 references to MsQuicSafeHandle
System.Net.Quic (36)
System\Net\Quic\Internal\MsQuicApi.cs (2)
26public MsQuicSafeHandle Registration { get; } 33[DynamicDependency(DynamicallyAccessedMemberTypes.PublicConstructors, typeof(MsQuicSafeHandle))]
System\Net\Quic\Internal\MsQuicApi.NativeMethods.cs (26)
10public void SetContext(MsQuicSafeHandle handle, void* context) 27public void* GetContext(MsQuicSafeHandle handle) 44public void SetCallbackHandler(MsQuicSafeHandle handle, void* callback, void* context) 61public int SetParam(MsQuicSafeHandle handle, uint param, uint bufferLength, void* buffer) 78public int GetParam(MsQuicSafeHandle handle, uint param, uint* bufferLength, void* buffer) 95public void RegistrationShutdown(MsQuicSafeHandle registration, QUIC_CONNECTION_SHUTDOWN_FLAGS flags, ulong code) 112public int ConfigurationOpen(MsQuicSafeHandle registration, QUIC_BUFFER* alpnBuffers, uint alpnBuffersCount, QUIC_SETTINGS* settings, uint settingsSize, void* context, QUIC_HANDLE** configuration) 129public int ConfigurationLoadCredential(MsQuicSafeHandle configuration, QUIC_CREDENTIAL_CONFIG* config) 146public int ListenerOpen(MsQuicSafeHandle registration, delegate* unmanaged[Cdecl]<QUIC_HANDLE*, void*, QUIC_LISTENER_EVENT*, int> callback, void* context, QUIC_HANDLE** listener) 163public int ListenerStart(MsQuicSafeHandle listener, QUIC_BUFFER* alpnBuffers, uint alpnBuffersCount, QuicAddr* localAddress) 180public void ListenerStop(MsQuicSafeHandle listener) 197public int ConnectionOpen(MsQuicSafeHandle registration, delegate* unmanaged[Cdecl]<QUIC_HANDLE*, void*, QUIC_CONNECTION_EVENT*, int> callback, void* context, QUIC_HANDLE** connection) 214public void ConnectionShutdown(MsQuicSafeHandle connection, QUIC_CONNECTION_SHUTDOWN_FLAGS flags, ulong code) 231public int ConnectionStart(MsQuicSafeHandle connection, MsQuicSafeHandle configuration, ushort family, sbyte* serverName, ushort serverPort) 254public int ConnectionSetConfiguration(MsQuicSafeHandle connection, MsQuicSafeHandle configuration) 277public int StreamOpen(MsQuicSafeHandle connection, QUIC_STREAM_OPEN_FLAGS flags, delegate* unmanaged[Cdecl]<QUIC_HANDLE*, void*, QUIC_STREAM_EVENT*, int> callback, void* context, QUIC_HANDLE** stream) 294public int StreamStart(MsQuicSafeHandle stream, QUIC_STREAM_START_FLAGS flags) 311public int StreamShutdown(MsQuicSafeHandle stream, QUIC_STREAM_SHUTDOWN_FLAGS flags, ulong code) 328public int StreamSend(MsQuicSafeHandle stream, QUIC_BUFFER* buffers, uint buffersCount, QUIC_SEND_FLAGS flags, void* context) 345public void StreamReceiveComplete(MsQuicSafeHandle stream, ulong length) 362public int StreamReceiveSetEnabled(MsQuicSafeHandle stream, byte enabled) 379public int DatagramSend(MsQuicSafeHandle connection, QUIC_BUFFER* buffers, uint buffersCount, QUIC_SEND_FLAGS flags, void* context) 396public int ConnectionResumptionTicketValidationComplete(MsQuicSafeHandle connection, byte result) 413public int ConnectionCertificateValidationComplete(MsQuicSafeHandle connection, byte result, QUIC_TLS_ALERT_CODES alert)
System\Net\Quic\Internal\MsQuicHelpers.cs (4)
57internal static unsafe T GetMsQuicParameter<T>(MsQuicSafeHandle handle, uint parameter) 64internal static unsafe void GetMsQuicParameter(MsQuicSafeHandle handle, uint parameter, uint length, byte* value) 78internal static unsafe void SetMsQuicParameter<T>(MsQuicSafeHandle handle, uint parameter, T value) 83internal static unsafe void SetMsQuicParameter(MsQuicSafeHandle handle, uint parameter, uint length, byte* value)
System\Net\Quic\Internal\MsQuicSafeHandle.cs (2)
96private readonly MsQuicSafeHandle? _parent; 112public unsafe MsQuicContextSafeHandle(QUIC_HANDLE* handle, GCHandle context, SafeHandleType safeHandleType, MsQuicSafeHandle? parent = null)
System\Net\Quic\NetEventSource.Quic.cs (1)
14if (value is MsQuicSafeHandle safeHandle)
System\Net\Quic\QuicConnection.cs (1)
163private MsQuicSafeHandle? _configuration;