I'm creating a Hub class for my SignalR server and wanted to use a generic method which will save me from tons of lines of code. But SignalR is giving me errors when I try to Invoke the server code below from a Xamarin.iOS client which 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 generic methods in SignalR Hubs?