16 references to SafeHandleType
System.Net.Quic (16)
System\Net\Quic\Internal\MsQuicApi.cs (1)
50Registration = new MsQuicSafeHandle(handle, apiTable->RegistrationClose, SafeHandleType.Registration);
System\Net\Quic\Internal\MsQuicSafeHandle.cs (10)
26private readonly SafeHandleType _type; 32public MsQuicSafeHandle(QUIC_HANDLE* handle, delegate* unmanaged[Cdecl]<QUIC_HANDLE*, void> releaseAction, SafeHandleType safeHandleType) 44public MsQuicSafeHandle(QUIC_HANDLE* handle, SafeHandleType safeHandleType) 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, 112public unsafe MsQuicContextSafeHandle(QUIC_HANDLE* handle, GCHandle context, SafeHandleType safeHandleType, MsQuicSafeHandle? parent = null) 156: base(handle, SafeHandleType.Configuration) { }
System\Net\Quic\QuicConnection.cs (2)
328_handle = new MsQuicContextSafeHandle(handle, context, SafeHandleType.Connection); 355_handle = new MsQuicContextSafeHandle(handle, context, SafeHandleType.Connection);
System\Net\Quic\QuicListener.cs (1)
131_handle = new MsQuicContextSafeHandle(handle, context, SafeHandleType.Listener);
System\Net\Quic\QuicStream.cs (2)
179_handle = new MsQuicContextSafeHandle(handle, context, SafeHandleType.Stream, connectionHandle) 213_handle = new MsQuicContextSafeHandle(handle, context, SafeHandleType.Stream, connectionHandle)