Пример #1
0
        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);
        }
Пример #2
0
 public static extern void MDataEntryActionsFreeNative(
     IntPtr appPtr,
     ulong actionsHandle,
     IntPtr self,
     MDataEntryActionsFreeCb callback);
Пример #3
0
 public void MDataEntryActionsFree(IntPtr appPtr, ulong actionsHandle, IntPtr self, MDataEntryActionsFreeCb callback)
 {
     MDataEntryActionsFreeNative(appPtr, actionsHandle, self, callback);
 }