Running SignalR .Net Client on Linux with Mono - p

2019-02-05 04:22发布

问题:

Does anyone have experience running the SignalR .net client on Mono? I am considering this for a process that I need to run cross platform (which needs to connect to a internet hosted SignalR Hub).

回答1:

I have created a sample project with signalr client working under mono framework:

https://github.com/mdymel/mono-signalr-client

I checked it with one of my websites and it works fine.



回答2:

I haven't tried it myself, but since the SignalR Mono solution file contains the Microsoft.AspNet.SignalR.Client40.Samples sample it would really seem like it does.



回答3:

It turns out Mono has a tool you can use to scan your assemblies to see if they are compatible with Mono. I did that and here is the results, related to the SignalR .net client:

So it looks like mono doesn't support some of the async Task stuff. I'll see if there is a way around this...