开发者

IPC in Mono & .NET

开发者 https://www.devze.com 2023-03-19 22:20 出处:网络
I am implementing a configuartion mechanism (GUI) for my windows service which is to be portable (linux daemon) via mono. I am using the app.config file and planned to expose methods used to write to

I am implementing a configuartion mechanism (GUI) for my windows service which is to be portable (linux daemon) via mono. I am using the app.config file and planned to expose methods used to write to it using WCF and named pipes. However, Now I have learned that named pipes are not implemented in Mono yet. HTTP endpoints are however, and I was wondering if I could use HTTPbinding for local IPC, to allow my GUI to modify the config file of the service. I that impossible/bad开发者_运维百科 practice?

If this is a bad idea, what are the alternatives? If all im doing is configuration, is IPC overkill? Is editing an external file or database a better alternavtive (values would not be changed so often) however, i have values that would not seem to 'fit' in a DB, like single ints.


Your solution seems fine, however I would rather use plain unix sockets. In fact, they are often used instead of named pipes. And I used them with mono, simply worked.

0

精彩评论

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