Brian
Brian

Reputation: 2800

How to communicate between a windows service and a desktop application running on different machines

I am writing a notification client desktop application to be installed on multiple machines on a single network. These clients will communicate with a central windows service running on a single machine within the same network. Both the client and service are written in C#.Net. I am trying to determine what technologies or frameworks I should use for communication between the client apps and the windows service. I hope to use a push notification pattern instead of polling from the client.

So far I have looked into SignalR and WCF. WCF with NamedPipes looked promising, but I saw that a limitation of the WCF NamedPipes implementation is that it has to be on the same machine, so that won't work for me. SignalR seems like a good option, but I wasn't sure if there is another framework out there that won't require hosting a web server to support HTTP.

Any Suggestions?

Upvotes: 1

Views: 1878

Answers (1)

MiCoDevelopers
MiCoDevelopers

Reputation: 21

You can consider MSMQ to send messages. https://msdn.microsoft.com/en-us/library/ms978430.aspx

This framework does not require anything special, as it is included with Windows. You may need to install the MSMQ as a Windows Feature. In my use it has been a pretty good utility that allows notifications and a host of other features.

Upvotes: 1

Related Questions