public static Task MDataEntryActionsFreeAsync(ulong entryActionsH) { var tcs = new TaskCompletionSource <object>(); MDataEntryActionsFreeCb callback = null; callback = (pVoid, result) => { if (result.ErrorCode != 0) { tcs.SetException(result.ToException()); CallbackManager.Unregister(callback); return; } tcs.SetResult(null); CallbackManager.Unregister(callback); }; CallbackManager.Register(callback); NativeBindings.MDataEntryActionsFree(Session.AppPtr, entryActionsH, Session.UserData, callback); return(tcs.Task); }
public static extern void MDataEntryActionsFreeNative( IntPtr appPtr, ulong actionsHandle, IntPtr self, MDataEntryActionsFreeCb callback);
public void MDataEntryActionsFree(IntPtr appPtr, ulong actionsHandle, IntPtr self, MDataEntryActionsFreeCb callback) { MDataEntryActionsFreeNative(appPtr, actionsHandle, self, callback); }