示例#1
0
 public IntPtr create(EventInstancer obj)
 {
     handle = GCHandle.Alloc(obj);
     return(ManagedEventInstancer_Create(instanceEventCb, releaseEventCb, releaseCb, GCHandle.ToIntPtr(handle)));
 }
示例#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);
 }