Esempio n. 1
0
        public static void Disconnect()
        {
            foreach (var client in StreamingHueClients)
            {
                client.LocalHueClient.SetStreamingAsync(_groupId, active: false);
            }

            EffectService.CancelAllEffects();
            if (_cts != null)
            {
                _cts.Cancel();
            }

            Layers = null;
            StreamingHueClients.Clear();
            StreamingGroups.Clear();
            CurrentConnection = null;
        }