Exemplo n.º 1
0
        private void UpdateStatus(DomeStatusUpdatedMessage action)
        {
            // This is a registered message handler. It could be called from a worker thread
            // and we need to be sure that the work is done on the U/I thread.

            Task.Factory.StartNew(() =>
            {
                Status      = action.Status;
                IsConnected = Status.Connected;
            }, CancellationToken.None, TaskCreationOptions.None, Globals.UISyncContext);
        }
Exemplo n.º 2
0
 private void DisconnectDome()
 {
     IsConnected = false;
     DomeManager.Disconnect();
     Status = null;
 }