常用方法
常用方法
常用方法
常用方法
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(); }