类似的Windows使用Mono在Linux服务的发展? [英] Windows like services development in LINUX using MONO?
问题描述
我刚刚从.NET开发转移到LINUX Mono开发......我不要有Linux开发较早..
-
我有一个要求单声道C#创建一个后台服务(如Windows服务)..有可能..
-
和有可能访问从单C#LINUX的原生API。 (就像WINAPI从胜C#调用)。
-
单随叫单服务Windows服务兼容的系统。
- 服务Unix的词是守护进程。定期守护进程/etc/init.d/boot.d中找到并安装到他们都应该由/etc/rc.*目录被符号链接运行在运行级别。
-
只要使用的p / Invoke就像你通常会。您还可以检查出像女妖其他一些简单的基于单项目的源代码,看看他们是如何做到在Linux上的P /调用。只要搜索上google.com/codesearch女妖。
I just moved from .net development to LINUX MONO development... and i don have much experience with linux dev earlier..
I have a requirement to create a background service (like windows services) in mono c#.. is it possible..
And is it possible to access the LINUX native APIs from mono c#. (like winAPI calls from win c#)..
Mono ships with a Windows Service compatible system called mono-service.
- The Unix word for service is Daemon. Regular daemons can be found in /etc/init.d/ and are installed into the runlevel they are supposed to run in by being symlinked from /etc/rc.* directories.
Just use p/invoke like you normally would. You can also check out the source code of some other simple mono-based projects like Banshee to see how they do p/invokes on Linux. Just search for banshee on google.com/codesearch.
这篇关于类似的Windows使用Mono在Linux服务的发展?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!