什么样的IPC有事件通知?
情况是,用户将打开一个aspx来查找运行时生成的文件。这样的文件是我在开始设计时生成的托管窗口服务。
现在我正在考虑在aspx和window服务之间建立一个IPC,这样当我有来自用户的请求时,我可以向windows服务发送消息。完成后,发回文件路径,然后在aspx中打开。
我查看了 IPCChannel、命名管道和共享内存...似乎它们在这个目的上不是很好...
实际上,该功能就像 filesystemwatcher ...当消息到来时,引发一个事件,然后我响应.. 。
谢谢。
the case is, user will open a aspx to look for file generated in runtime. Such file is generated my a managed window service at the beginning design.
Now I am considering to have a IPC between aspx and the window service, so when I have a request from the user, I can send a message to windows service. After it is done, send back the file path and then open it in aspx.
I have a look about IPCChannel, Named Pipe and shared memory ...seems they are not very good on this purpose ...
Actually, the function just like filesystemwatcher ...When a message come, raise a event and I response ...
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这里的问题是网站使用请求/回复架构,该架构不能很好地与事件驱动架构(通常是异步的)配合使用。
最简单的方法可能是让 Windows 服务托管您从 Web 应用程序调用的 WCF 服务。
The problem here is that a website uses a request/reply architecture which doesn't work very well with event driven architecture (which usually is asynchronous).
The easiest approach is probably to let the windows service host a WCF service which you call from your web application.