OpenHome.Net.ControlPoint.Proxies.CpProxyOpenhomeOrgTestBasic1.SyncGetUint C# (CSharp) Method

SyncGetUint() public method

Invoke the action synchronously
Blocks until the action has been processed on the device and sets any output arguments
public SyncGetUint ( uint &aValueUint ) : void
aValueUint uint
return void
        public void SyncGetUint(out uint aValueUint)
        {
            SyncGetUintOpenhomeOrgTestBasic1 sync = new SyncGetUintOpenhomeOrgTestBasic1(this);
            BeginGetUint(sync.AsyncComplete());
            sync.Wait();
            sync.ReportError();
            aValueUint = sync.ValueUint();
        }

Usage Example

Esempio n. 1
0
 private static void ActionThread(object aArgs)
 {
     ThreadArgs args = (ThreadArgs)aArgs;
     using (CpProxyOpenhomeOrgTestBasic1 proxy = new CpProxyOpenhomeOrgTestBasic1(args.Device))
     {
         uint val;
         do
         {
             proxy.SyncGetUint(out val);
         } while (args.IncrementCount());
     }
 }