/// <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="aColor"></param> /// <param name="aBrightness"></param> /// <param name="aRed"></param> /// <param name="aGreen"></param> /// <param name="aBlue"></param> public void SyncGetColorComponents(uint aColor, out uint aBrightness, out uint aRed, out uint aGreen, out uint aBlue) { SyncGetColorComponentsOpenhomeOrgTestLights1 sync = new SyncGetColorComponentsOpenhomeOrgTestLights1(this); BeginGetColorComponents(aColor, sync.AsyncComplete()); sync.Wait(); sync.ReportError(); aBrightness = sync.Brightness(); aRed = sync.Red(); aGreen = sync.Green(); aBlue = sync.Blue(); }