Пример #1
0
 public void AccessContainerGetContainerMDataInfo(
     IntPtr appPtr,
     string name,
     IntPtr self,
     AccessContainerGetContainerMDataInfoCb callback)
 {
     AccessContainerGetContainerMDataInfoNative(appPtr, name, self, callback);
 }
Пример #2
0
        public static Task <ulong> GetContainerMDataInfoAsync(string appId)
        {
            var tcs = new TaskCompletionSource <ulong>();

            AccessContainerGetContainerMDataInfoCb callback = null;

            callback = (pVoid, result, mdataInfoH) => {
                if (result.ErrorCode != 0)
                {
                    tcs.SetException(result.ToException());
                    CallbackManager.Unregister(callback);
                    return;
                }

                tcs.SetResult(mdataInfoH);
                CallbackManager.Unregister(callback);
            };

            CallbackManager.Register(callback);
            NativeBindings.AccessContainerGetContainerMDataInfo(Session.AppPtr, appId, Session.UserData, callback);

            return(tcs.Task);
        }
Пример #3
0
 public static extern void AccessContainerGetContainerMDataInfoNative(
     IntPtr appPtr,
     string name,
     IntPtr self,
     AccessContainerGetContainerMDataInfoCb callback);