Class IPoolEventHandler<T>.NativeEventHandlerManager
Manages the marshalling of native event handlers for IPoolEventHandler<T>.
public class IPoolEventHandler<T>.NativeEventHandlerManager : EventHandlerMarshaller<IPoolEventHandler<T>>, IEventHandlerMarshaller<IPoolEventHandler<T>>
- Inheritance
-
IPoolEventHandler<T>.NativeEventHandlerManager
- Implements
- Inherited Members
Constructors
NativeEventHandlerManager()
public NativeEventHandlerManager()
Properties
Instance
Gets the singleton instance of the IPoolEventHandler<T>.NativeEventHandlerManager.
public static IPoolEventHandler<T>.NativeEventHandlerManager Instance { get; }
Property Value
Methods
Create(IPoolEventHandler<T>)
Creates the unmanaged counterpart of the specified event handler.
protected override (nint, object) Create(IPoolEventHandler<T> handler)
Parameters
handlerIPoolEventHandler<T>The event handler for which to create the unmanaged counterpart.
Returns
- (nint, object)
An unmanaged handle and an object of luggage which will be kept so GC won't clean it up.
Free(nint)
Frees the resources associated with the specified unmanaged handle.
protected override void Free(nint handle)
Parameters
handlenintThe unmanaged handle to free.