Ejemplo n.º 1
0
        protected override async void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            await Application.InitializeCommunication();

            Application.SignalRClient.StateChanged += state =>
            {
                if (state.NewState == ConnectionState.Disconnected)
                {
                    this.RunOnUiThread(() =>
                    {
                        PresentMessage(MessageInfo.Create("Disconected from server!", MessageType.Error, Timeout.Infinite, true));
                        AuthenticationManager.Logout();
                    });
                }
            };
        }