|
|
@ -48,6 +48,7 @@ namespace BookAStar.Pages
|
|
|
|
if (string.IsNullOrEmpty(user.ChatHubConnectionId)) return;
|
|
|
|
if (string.IsNullOrEmpty(user.ChatHubConnectionId)) return;
|
|
|
|
IsBusy = true;
|
|
|
|
IsBusy = true;
|
|
|
|
try
|
|
|
|
try
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
await App.ChatHubProxy.Invoke<string>("SendPV", user.ChatHubConnectionId, pvEntry.Text);
|
|
|
|
await App.ChatHubProxy.Invoke<string>("SendPV", user.ChatHubConnectionId, pvEntry.Text);
|
|
|
|
pvEntry.Text = null;
|
|
|
|
pvEntry.Text = null;
|
|
|
@ -61,13 +62,6 @@ namespace BookAStar.Pages
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void ReconnectButton_Clicked(object sender, EventArgs e)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
App.ChatHubConnection.Stop();
|
|
|
|
|
|
|
|
App.ChatHubConnection.Start();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void ChatHubConnection_StateChanged(StateChange obj)
|
|
|
|
private void ChatHubConnection_StateChanged(StateChange obj)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Xamarin.Forms.Device.BeginInvokeOnMainThread(
|
|
|
|
Xamarin.Forms.Device.BeginInvokeOnMainThread(
|
|
|
|