private Task InitSignalR() { hubConnection = new HubConnectionBuilder() .WithUrl(new Uri($"{SignalRUrl}schedulehub")) .Build(); hubConnection.On <string>("ReceiveMessage", async(message) => { await RefreshDataAsync(); ToastService.SendMessage(message); }); return(hubConnection.StartAsync()); }