/// <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="aClientId"></param> /// <param name="aUdn"></param> /// <param name="aService"></param> /// <param name="aRequestedDuration"></param> /// <param name="aSid"></param> /// <param name="aDuration"></param> public void SyncSubscribe(String aClientId, String aUdn, String aService, uint aRequestedDuration, out String aSid, out uint aDuration) { SyncSubscribeOpenhomeOrgSubscriptionLongPoll1 sync = new SyncSubscribeOpenhomeOrgSubscriptionLongPoll1(this); BeginSubscribe(aClientId, aUdn, aService, aRequestedDuration, sync.AsyncComplete()); sync.Wait(); sync.ReportError(); aSid = sync.Sid(); aDuration = sync.Duration(); }