Adrian
Adrian

Reputation: 769

WCF client hosted in a windows service with a WPF UI

I have now a WCF service that is hosted inside a WPF application. It's running in a WCF server-client scenario where the client can call the server as well (duplex communications).

I would like to host the WCF client in a windows service, but I'd like to keep the WPF UI because of the functionality it provides when making calls back to the server (e.g. request information). I know that windows services don't have UI, but in this case I need it.

What best way is there to communicate between the WPF application and the windows service? (something better than sockets maybe?)

A scenario where this is useful would be something like:

Thanks, Adrian

Upvotes: 0

Views: 936

Answers (1)

Stephen Holt
Stephen Holt

Reputation: 2368

Since the service is already running as WCF, how about exposing some extra "admin" methods on the WCF interface and have the WPF application interact with the service through those?

You'd have to put in a security layer to make sure only the legitimate user could call those new methods, but this solution might be the least work since the WCF infrastructure is already in place.

Upvotes: 1

Related Questions