Rahul Rajput
Rahul Rajput

Reputation: 1437

ASP.NET MVC 4 application to Call Windows Service

We are using distributed architecture for our project. In which UI layer is reside on one server and Business Layer on another server. We are creating Windows service of Business layer. Is it possible to call the windows service from another server UI application. How to do it?

Upvotes: 1

Views: 5356

Answers (2)

Josh
Josh

Reputation: 44906

There are a couple of options for communicating with a windows service.

  1. A service bus
  2. In Proc hosted WebAPI
  3. Self hosted WCF Service
  4. SignalR to message between client and server

Upvotes: 5

Olav Nybø
Olav Nybø

Reputation: 11568

You could create a self hosted wcf service inside of your windows service. Check this similar question and answer for more information: Can I host (self host) a WCF Service in a Windows Service and expose it via http?

Upvotes: 1

Related Questions