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;
        }
Exemple #2
0
        public void OnConnectionSuccess()
        {
            var message = new ConnectionStatusChangeNotification(this, ConnectionStatus.OnConnectionSuccess);

            _messenger.Publish(message);
        }
Exemple #3
0
        public void OnReconnectSucceeded()
        {
            var message = new ConnectionStatusChangeNotification(this, ConnectionStatus.OnReconnectSucceeded);

            _messenger.Publish(message);
        }
Exemple #4
0
        public void OnConnectionFailed(string reason)
        {
            var message = new ConnectionStatusChangeNotification(this, ConnectionStatus.OnConnectionFailed, reason);

            _messenger.Publish(message);
        }