I have a web service being polled every few seconds in my winform c# app. It checks for messages and gets them from my server and/or it relays messages from my desktop app to my server.
The web service is being invoke in an infinite loop which the User can stop and start at the click of a button. When the polling is on the memory goes up and stays up (which I guess I expected using infinite loop). If there was way for my server to notify my client that a message is available then I assume I can get rid of my infinite loop. I was looking at different architectures and I came across SignalR but it seems more geared for asp.net. Is that the case? Or can it be modified to work in my scenario here?
thanks
Using SignalR as a client (or server) requires win8+ to get websockets. That should be something you are very aware of before using it. I learned the hard way ;) See support here http://www.asp.net/signalr/overview/signalr-1x/getting-started/supported-platforms
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With