简体   繁体   English

在另一个过程中发生火灾

[英]Fire event in another process

In my application I'd like to start another process, which has 3 events. 在我的应用程序中,我想启动另一个进程,该进程有3个事件。 How can I fire/trigger an event, or just call a function, which is in another process? 如何触发/触发一个事件,或者仅调用另一个过程中的函数? I also would like to pass some object to the another process (ie the handler of my form's textbox). 我还想将一些对象传递给另一个进程(即,表单文本框的处理程序)。

This example looks perfect , but can I do that without tcp? 这个例子看起来很完美 ,但是没有tcp我可以做到吗? Ie.: over pipes, etc.. Correct me if I wrong, but the eventwaithandle is not a solution for me, because every (3) event would require on own thread to block. 即:通过管道等。如果我错了,请纠正我,但是eventwaithandle对我来说不是解决方案,因为每个(3)事件都需要使用自己的线程来阻止。

Thank you in advance, 先感谢您,

Daniel 丹尼尔

This is an old question but still... 这是一个老问题,但仍然...

There are some ways to accomplish something similar with REDIS in a PUB/SUB manner. 有一些方法可以通过PUB / SUB方式完成与REDIS类似的操作 One of the most popular .Net implementations is ServiceStack . 最受欢迎的.Net实现之一是ServiceStack

HERE is an usage example. 这里是一个用法示例。

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

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