private void OnConnectionStatusChangeNotification(ConnectionStatusChangeNotification notification) { if (notification.Status == Notifications.ConnectionStatus.OnConnectionSuccess) { _navigationService.Navigate <ChatListViewModel>(); } else { //TODO handle connection failed Console.WriteLine(notification.Message); } ShowConnectProgress = false; }
public void OnConnectionSuccess() { var message = new ConnectionStatusChangeNotification(this, ConnectionStatus.OnConnectionSuccess); _messenger.Publish(message); }
public void OnReconnectSucceeded() { var message = new ConnectionStatusChangeNotification(this, ConnectionStatus.OnReconnectSucceeded); _messenger.Publish(message); }
public void OnConnectionFailed(string reason) { var message = new ConnectionStatusChangeNotification(this, ConnectionStatus.OnConnectionFailed, reason); _messenger.Publish(message); }