OpenHome.Net.ControlPoint.Invocation.AsyncComplete C# (CSharp) Method

AsyncComplete() private method

private AsyncComplete ( IntPtr aPtr, IntPtr aAsyncHandle ) : void
aPtr System.IntPtr
aAsyncHandle System.IntPtr
return void
        private static void AsyncComplete(IntPtr aPtr, IntPtr aAsyncHandle)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            Invocation self = (Invocation)gch.Target;
            try
            {
                self.iAsyncComplete(aAsyncHandle);
            }
            catch (ProxyError)
            {
            }
            catch (Exception e)
            {
                System.Diagnostics.Debug.WriteLine("WARNING: unexpected exception {0} thrown", new object[] { e });
                System.Diagnostics.Debug.WriteLine("         Only ProxyError can be thrown by action complete delegates");
            }
            gch.Free();
            self.iService.InvocationComplete(self);
        }
    }