public IntPtr create(EventInstancer obj)
 {
     handle = GCHandle.Alloc(obj);
     return(ManagedEventInstancer_Create(instanceEventCb, releaseEventCb, releaseCb, GCHandle.ToIntPtr(handle)));
 }
Beispiel #2
0
 /// Registers an instancer for all events.
 /// @param[in] instancer The instancer to be called.
 /// @return The registered instanced on success, NULL on failure.
 public static EventInstancer RegisterEventInstancer(EventInstancer instancer)
 {
     Factory_RegisterEventInstancer(instancer.Ptr);
     return(instancer);
 }