Microsoft.Protocols.TestSuites.MS_OXCNOTIF.MS_OXCNOTIFAdapter.BeginAsyncWait C# (CSharp) Method

BeginAsyncWait() public method

Call EcDoAsyncWaitEx method and return immediately.
public BeginAsyncWait ( IntPtr acxh, IntPtr &rpcAsyncHandle ) : void
acxh IntPtr The asynchronous context handle
rpcAsyncHandle IntPtr RPC asynchronous handle
return void
        public void BeginAsyncWait(IntPtr acxh, out IntPtr rpcAsyncHandle)
        {
            rpcAsyncHandle = NativeMethods.CreateRpcAsyncHandle();
            Site.Assert.AreNotEqual<IntPtr>(IntPtr.Zero, rpcAsyncHandle, "Get valid asynchronous handle");
            this.pulFlagsOut = Marshal.AllocHGlobal(sizeof(int));

            NativeMethods.EcDoAsyncWaitEx(rpcAsyncHandle, acxh, 0, this.pulFlagsOut);
            this.VerifyAsyncCallOnRPCTransport();
        }