Inheritance: OpenHome.Net.ControlPoint.SyncProxyAction
示例#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="aPreferences"></param>
        /// <param name="aLeastCommonChangedNode"></param>
        /// <param name="aExpectedRevision"></param>
        /// <param name="aOnConflict"></param>
        public void SyncSetPreferences(String aPreferences, String aLeastCommonChangedNode, uint aExpectedRevision, String aOnConflict)
        {
            SyncSetPreferencesRaumfeldComConfigService1 sync = new SyncSetPreferencesRaumfeldComConfigService1(this);

            BeginSetPreferences(aPreferences, aLeastCommonChangedNode, aExpectedRevision, aOnConflict, sync.AsyncComplete());
            sync.Wait();
            sync.ReportError();
        }
 /// <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="aPreferences"></param>
 /// <param name="aLeastCommonChangedNode"></param>
 /// <param name="aExpectedRevision"></param>
 /// <param name="aOnConflict"></param>
 public void SyncSetPreferences(String aPreferences, String aLeastCommonChangedNode, uint aExpectedRevision, String aOnConflict)
 {
     SyncSetPreferencesRaumfeldComConfigService1 sync = new SyncSetPreferencesRaumfeldComConfigService1(this);
     BeginSetPreferences(aPreferences, aLeastCommonChangedNode, aExpectedRevision, aOnConflict, sync.AsyncComplete());
     sync.Wait();
     sync.ReportError();
 }