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()); } }