类似的Windows使用Mono在Linux服务的发展? [英] Windows like services development in LINUX using MONO?

查看:157
本文介绍了类似的Windows使用Mono在Linux服务的发展?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚从.NET开发转移到LINUX Mono开发......我不要有Linux开发较早..




    我有一个要求单声道C#创建一个后台服务(如Windows服务)..有可能..


  1. 和有可能访问从单C#LINUX的原生API。 (就像WINAPI从胜C#调用)。







解决方案

  1. 单随叫单服务Windows服务兼容的系统。




    • 服务Unix的词是守护进程。定期守护进程/etc/init.d/boot.d中找到并安装到他们都应该由/etc/rc.*目录被符号链接运行在运行级别。


  2. 只要使用的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..

  1. I have a requirement to create a background service (like windows services) in mono c#.. is it possible..

  2. And is it possible to access the LINUX native APIs from mono c#. (like winAPI calls from win c#)..

解决方案

  1. 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.
  2. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆