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(); }); } }; }