简体   繁体   English

c#从windows服务到桌面应用程序

[英]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? 谁能告诉我,还给我一个简短的例子,说明我如何建立从Windows服务到ac#console应用程序(表单应用程序)项目的桥梁? i would need a short example. 我需要一个简短的例子。 What should i write in the start, continue and stop methods that windows service has? 我应该在启动,继续和停止Windows服务的方法中写什么?

EDIT 编辑

I have ac# project. 我有ac #project。 i just want to run it from a windows service using a brige..or somthing. 我只是想使用brige..or somthing从Windows服务运行它。 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. 您所说的桥通常称为IPC(进程间通信),可以以n + 1种方式完成。 The one I would suggest you look at is WCF since it is a framework that allows you many ways to do IPC. 我建议你看一下的是WCF,因为它是一个允许你通过多种方式进行IPC的框架。 Hear is a tutorial . 听到是一个教程

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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