/// <summary> /// Invoke the action synchronously /// </summary> /// <remarks>Blocks until the action has been processed /// on the device and sets any output arguments</remarks> /// <param name="aRemoteProtocolInfo"></param> /// <param name="aPeerConnectionManager"></param> /// <param name="aPeerConnectionID"></param> /// <param name="aDirection"></param> /// <param name="aConnectionID"></param> /// <param name="aAVTransportID"></param> /// <param name="aRcsID"></param> public void SyncPrepareForConnection(String aRemoteProtocolInfo, String aPeerConnectionManager, int aPeerConnectionID, String aDirection, out int aConnectionID, out int aAVTransportID, out int aRcsID) { SyncPrepareForConnectionUpnpOrgConnectionManager1 sync = new SyncPrepareForConnectionUpnpOrgConnectionManager1(this); BeginPrepareForConnection(aRemoteProtocolInfo, aPeerConnectionManager, aPeerConnectionID, aDirection, sync.AsyncComplete()); sync.Wait(); sync.ReportError(); aConnectionID = sync.ConnectionID(); aAVTransportID = sync.AVTransportID(); aRcsID = sync.RcsID(); }