internal IntPtr SWIG_OnCompletion(FutureVoid.SWIG_CompletionDelegate cs_callback, int cs_key)
        {
            IntPtr result = AppUtilPINVOKE.FutureVoid_SWIG_OnCompletion(this.swigCPtr, cs_callback, cs_key);

            if (AppUtilPINVOKE.SWIGPendingException.Pending)
            {
                throw AppUtilPINVOKE.SWIGPendingException.Retrieve();
            }
            return(result);
        }
        public void SetOnCompletionCallback(FutureVoid.Action userCompletionCallback)
        {
            if (this.SWIG_CompletionCB == null)
            {
                this.SWIG_CompletionCB = new FutureVoid.SWIG_CompletionDelegate(FutureVoid.SWIG_CompletionDispatcher);
            }
            object callbackLock = FutureVoid.CallbackLock;
            int    num;

            lock (callbackLock)
            {
                if (FutureVoid.Callbacks == null)
                {
                    FutureVoid.Callbacks = new Dictionary <int, FutureVoid.Action>();
                }
                num = ++FutureVoid.CallbackIndex;
                FutureVoid.Callbacks[num] = userCompletionCallback;
            }
            this.SetCompletionData(this.SWIG_OnCompletion(this.SWIG_CompletionCB, num));
        }
 public static extern IntPtr FutureVoid_SWIG_OnCompletion(HandleRef jarg1, FutureVoid.SWIG_CompletionDelegate jarg2, int jarg3);