开发者

What kind of IPC have event for notify?

开发者 https://www.devze.com 2023-03-28 04:17 出处:网络
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.

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开发者_C百科 a event and I response ...

Thanks.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号