OpenHome.Net.ControlPoint.Proxies.CpProxyUpnpOrgConnectionManager1.EndPrepareForConnection C# (CSharp) Method

EndPrepareForConnection() public method

Retrieve the output arguments from an asynchronously invoked action.
This may only be called from the callback set in the above Begin function.
public EndPrepareForConnection ( IntPtr aAsyncHandle, int &aConnectionID, int &aAVTransportID, int &aRcsID ) : void
aAsyncHandle System.IntPtr Argument passed to the delegate set in the above Begin function
aConnectionID int
aAVTransportID int
aRcsID int
return void
        public void EndPrepareForConnection(IntPtr aAsyncHandle, out int aConnectionID, out int aAVTransportID, out int aRcsID)
        {
            uint code;
            string desc;
            if (Invocation.Error(aAsyncHandle, out code, out desc))
            {
                throw new ProxyError(code, desc);
            }
            uint index = 0;
            aConnectionID = Invocation.OutputInt(aAsyncHandle, index++);
            aAVTransportID = Invocation.OutputInt(aAsyncHandle, index++);
            aRcsID = Invocation.OutputInt(aAsyncHandle, index++);
        }

Usage Example

Ejemplo n.º 1
0
 protected override void CompleteRequest(IntPtr aAsyncHandle)
 {
     iService.EndPrepareForConnection(aAsyncHandle, out iConnectionID, out iAVTransportID, out iRcsID);
 }