private void ConnectResultHandler(object sender, CommunicationStack.Net.DataModels.MsgPumpResults results)
        {
            this.connected = results.Code == MsgPumpResultCode.Connected;

            this.log.Info("MsgPumpConnectResultEvent", () => string.Format(
                              "Connect result:{0}  Socket:{1} Msg:{2}",
                              results.Code, results.SocketErr, results.ErrorString));
            this.ConnectionCompleted?.Invoke(this, this.connected);
        }
Пример #2
0
 private void OnWifiConnectionAttemptCompletedHandler(object sender, CommunicationStack.Net.DataModels.MsgPumpResults e)
 {
     Device.BeginInvokeOnMainThread(() => {
         this.viewModel.IsBusy   = false;
         this.activity.IsRunning = false;
         if (e.Code == MsgPumpResultCode.Connected)
         {
             this.SetConnectedLight(true);
         }
         else
         {
             this.OnErr(string.Format("Connect Attempt Result:{0} - {1}", e.Code, e.ErrorString));
         }
     });
 }