Inheritance: OpenHome.Net.ControlPoint.SyncProxyAction
Esempio n. 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="aConnectionID"></param>
        /// <param name="aRcsID"></param>
        /// <param name="aAVTransportID"></param>
        /// <param name="aProtocolInfo"></param>
        /// <param name="aPeerConnectionManager"></param>
        /// <param name="aPeerConnectionID"></param>
        /// <param name="aDirection"></param>
        /// <param name="aStatus"></param>
        public void SyncGetCurrentConnectionInfo(int aConnectionID, out int aRcsID, out int aAVTransportID, out String aProtocolInfo, out String aPeerConnectionManager, out int aPeerConnectionID, out String aDirection, out String aStatus)
        {
            SyncGetCurrentConnectionInfoUpnpOrgConnectionManager1 sync = new SyncGetCurrentConnectionInfoUpnpOrgConnectionManager1(this);

            BeginGetCurrentConnectionInfo(aConnectionID, sync.AsyncComplete());
            sync.Wait();
            sync.ReportError();
            aRcsID                 = sync.RcsID();
            aAVTransportID         = sync.AVTransportID();
            aProtocolInfo          = sync.ProtocolInfo();
            aPeerConnectionManager = sync.PeerConnectionManager();
            aPeerConnectionID      = sync.PeerConnectionID();
            aDirection             = sync.Direction();
            aStatus                = sync.Status();
        }
 /// <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="aConnectionID"></param>
 /// <param name="aRcsID"></param>
 /// <param name="aAVTransportID"></param>
 /// <param name="aProtocolInfo"></param>
 /// <param name="aPeerConnectionManager"></param>
 /// <param name="aPeerConnectionID"></param>
 /// <param name="aDirection"></param>
 /// <param name="aStatus"></param>
 public void SyncGetCurrentConnectionInfo(int aConnectionID, out int aRcsID, out int aAVTransportID, out String aProtocolInfo, out String aPeerConnectionManager, out int aPeerConnectionID, out String aDirection, out String aStatus)
 {
     SyncGetCurrentConnectionInfoUpnpOrgConnectionManager1 sync = new SyncGetCurrentConnectionInfoUpnpOrgConnectionManager1(this);
     BeginGetCurrentConnectionInfo(aConnectionID, sync.AsyncComplete());
     sync.Wait();
     sync.ReportError();
     aRcsID = sync.RcsID();
     aAVTransportID = sync.AVTransportID();
     aProtocolInfo = sync.ProtocolInfo();
     aPeerConnectionManager = sync.PeerConnectionManager();
     aPeerConnectionID = sync.PeerConnectionID();
     aDirection = sync.Direction();
     aStatus = sync.Status();
 }