Пример #1
0
        /// <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)
        {
            SyncPrepareForConnectionUpnpOrgConnectionManager2 sync = new SyncPrepareForConnectionUpnpOrgConnectionManager2(this);

            BeginPrepareForConnection(aRemoteProtocolInfo, aPeerConnectionManager, aPeerConnectionID, aDirection, sync.AsyncComplete());
            sync.Wait();
            sync.ReportError();
            aConnectionID  = sync.ConnectionID();
            aAVTransportID = sync.AVTransportID();
            aRcsID         = sync.RcsID();
        }
 /// <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)
 {
     SyncPrepareForConnectionUpnpOrgConnectionManager2 sync = new SyncPrepareForConnectionUpnpOrgConnectionManager2(this);
     BeginPrepareForConnection(aRemoteProtocolInfo, aPeerConnectionManager, aPeerConnectionID, aDirection, sync.AsyncComplete());
     sync.Wait();
     sync.ReportError();
     aConnectionID = sync.ConnectionID();
     aAVTransportID = sync.AVTransportID();
     aRcsID = sync.RcsID();
 }