public HubProxy(string address, string hubName) { _connection = new Microsoft.AspNet.SignalR.Client.HubConnection(address); _proxy = _connection.CreateHubProxy(hubName); _connection.Start().Wait(); }
protected virtual Task <T> AuthorizedRequest <T>(Microsoft.AspNet.SignalR.Client.IHubProxy proxy, string method, params object[] data) where T : BasicResponse, new() { return(Connection.Invoke <T>(proxy, method, data)); }
void MainPage_Loaded(object sender, RoutedEventArgs e) { var url = new Uri(this.textBox.Text); connection = new Microsoft.AspNet.SignalR.Client.HubConnection(url.ToString()); proxy = connection.CreateHubProxy("HeartRateHub"); }
public override void InitHub(Microsoft.AspNet.SignalR.Client.IHubProxy hub) { }