public PowerMonitorViewModel(IPowerService pService)
 {
     _pService = pService;
     _pService.GotData = (t, p) =>
     {
         DispatcherHelper.CheckBeginInvokeOnUI(() => { Power = p; Temperature = t; });
     };
       
     _pService.ConnectAndListen();
     ConnectToHub();
 }
        public PowerMonitorViewModel(IPowerService pService)
        {
            _pService         = pService;
            _pService.GotData = (t, p) =>
            {
                DispatcherHelper.CheckBeginInvokeOnUI(() => { Power = p; Temperature = t; });
            };

            _pService.ConnectAndListen();
            ConnectToHub();
        }