public async Task<TestDeviceState> GetState () { var cache = _deviceState.GetCachePromise(0); if (cache == null) { return _initialState; } return await cache.GetValue(AcquireState); }
public async Task <LightStates> GetState() { var cache = _deviceState.GetCachePromise(0); if (cache == null) { return(_initialState); } return(await cache.GetValue(AcquireState)); }