0

I have a WPF desktop application. This application is required to expose certain functions for the external remote clients. Currently we have a socket protocol which we expose for the external clients. Can we instead (or also) use WCF to expose these functions as a service ?

Gusdor
  • 14,001
  • 2
  • 52
  • 64
Nirdesh
  • 43
  • 7
  • 3
    Yes, you can do that. However, you should have just tried it before asking here. – Clemens Jun 23 '14 at 09:53
  • 1
    possible duplicate of [Hosting WCF web service inside WPF application](http://stackoverflow.com/questions/9453590/hosting-wcf-web-service-inside-wpf-application) – CodeCaster Jun 23 '14 at 10:11

1 Answers1

2

Yes, you'll simply need to create and start a ServiceHost for your WCF service.

Community
  • 1
  • 1
jnovo
  • 5,659
  • 2
  • 38
  • 56