How to communicate between WCF service and host application?

后端 未结 3 1528
梦如初夏
梦如初夏 2020-12-17 05:27

I created an WCF service through this tutorial. This works great, no problems here. Now I am hosting the service in an Managed Application. But at the same time I would like

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-17 05:50

    It is like communication between threads. You need some shared variable with proper locking / synchronization. Your host application will write to this variable and your service will be able to read from that variable.

提交回复
热议问题