Esempio n. 1
0
    public async void Initialized()
    {
        this.Notifications = new ObservableCollection <string>();
        var hubConnection = new HubConnectionBuilder()
                            .WithUrl(UrlBuilder.BuildEndpoint("Notifications"))
                            .Build();

        hubConnection.On <string>("ReciveServerUpdate", update =>
        {
            //todo
        });
        await hubConnection.StartAsync();
    }