Table of Contents

Class IPoolEventHandler<T>.NativeEventHandlerManager

Namespace
SampSharp.OpenMp.Core.Api
Assembly
SampSharp.OpenMp.Core.dll

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

IPoolEventHandler<T>.NativeEventHandlerManager

Methods

Create(IPoolEventHandler<T>)

Creates the unmanaged counterpart of the specified event handler.

protected override (nint, object) Create(IPoolEventHandler<T> handler)

Parameters

handler IPoolEventHandler<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

handle nint

The unmanaged handle to free.