I am creating a Hub class for my SignalR server and wanted to use a generic method that will save me a lot of lines of code. But SignalR gives me errors when I try to call the server code below from the Xamarin.iOS client, which is also in C #.
Server code
public List<T> SendDataToClient<T>() where T : BusinessEntityBase { return SomeDBManager.GetItems<T>(); }
Client code
var list = await hubProxy.Invoke<List<Article>>("SendDataToClient");
Am I doing something wrong here or is it just impossible to use common methods in SignalR hubs?
generics c # signalr signalr-hub signalr.client
timu
source share