简体   繁体   中英

c# from windows service to desktop application

can someone tell me and also give me a short example of how could i make a bridge from a windows service to ac# console application (form application) project? i would need a short example. What should i write in the start, continue and stop methods that windows service has?

EDIT

I have ac# project. i just want to run it from a windows service using a brige..or somthing. i know communication between sessions is not possible

The bridge you speak of is normally called IPC ( inter process communication) and can be done in n + 1 ways. The one I would suggest you look at is WCF since it is a framework that allows you many ways to do IPC. Hear is a tutorial .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM