如何使用SignalR使用.NET 3.5如何使用、SignalR、NET

2023-09-02 10:51:45 作者:发疯起来自己都怕

我想建立使用SiganlR一个WinForm的业务解决方案,但我不能够在客户端计算机上安装.NET 4.0。它看起来像SignalR具有.NET 4.0的要求的最小值。什么是使用SignalR从一个winform和.NET 3.5的最佳途径。我想包括发送/接收信息功能的客户端应用程序。

I would like to build a winform business solution using SiganlR, but I am not able to install .net 4.0 on the client machine. It looks like SignalR has a mininum requirement of .net 4.0. What is the best way to use SignalR from a winform and .net 3.5. I would like to include the send/receive message functions in the client application.

我会在IIS上我的内网使用.NET 4.0在服务器端进行托管SignalR。

I will be hosting SignalR on IIS on my intranet using .net 4.0 on the server side.

有没有可能建立和API(在.NET 3.5)类似的 pubnub C#?任何人都可以点我在正确的方向。

Would it be possible to create and API (in .net 3.5) similar to pubnub C#? Can anyone point me in the right direction.

推荐答案

如果你不是太害怕编译你自己的东西,我已经创造了SignalR一个.NET 2.0兼容的客户端库。它的面世马上我叉( https://github.com/robink-teleopti/SignalR )SignalR的。

If you're not too scared of compiling your own stuff I have created a .net 2.0 compatible client library for SignalR. It's available right off my fork (https://github.com/robink-teleopti/SignalR) of SignalR.

目前,我有做,因为我不想额外负担加重原有项目拉请求没有任何意图。

At the moment I have no intent of making a pull request as I don't want to add that extra burden to the original project.

我有我的叉子一个更多的修改,可以很好的了解。具有属于超过20个组我自动切换到使用POST而不是GET客户端时,我已经取得了细微的修改,在服务器端处理的部分。

I have one more modification on my fork that can be good to know about. When having clients belonging to more than 20 groups I automatically switch to using POST instead of GET and I have made minor modifications on the server side to handle that part.