English 中文(简体)
Windows Services Framework?
原标题:Windows Services Framework?

是否有开发Windows服务的良好框架或模板? 我通常不书写窗户服务,希望有人通过一个皮或榜样项目分享其专门知识。

我正在实施一项有以下要求的项目:

    **A windows service that:**
  • performs 1..many independently scheduled tasks
  • reports on the success or failure of these tasks via email/log/sms/??
  • allows adding/removal of tasks
  • allows changing of schedules

<>>>>>

marc_s response 请我注意:

最佳回答

我知道这是一个老问题,但有时是谷歌尔会走到这里,因为我有:

Topshelf是一个冰窗服务框架。

创建Windows 视力演播室使用标准视窗服务模板的服务十分简单,你实际上不需要任何特殊框架。 然而,在VS Express中,你可能没有双赢服务模板,而P Topshelf则很容易使用Windows-> Console Application Project模板。

没有任何单一框架可以提供原始问题中所列的所有要求,但这里有一些建议:

  • many independently scheduled tasks
  • allows adding/removal of tasks
  • allows changing of schedules

你也许在这里非常喜欢你自己,但用时间手和简便组合在你的评议中很容易完成。 或者,如果你想要ancy,使用依赖性注射或原始机制,则可能使用最低生活标准。

  • reports on the success or failure of these tasks via email/log/sms/??

参看记录仪表或N行文记录仪。 两者都有支持。

(Having usedWindows Workflow Foundation (WF), I m 根本不相信与世界自然基金会有关的问题。 如果有人能够提供可辩驳的样本,表明世界自然基金会如何在原始问题中满足任何要求,我将不胜感激。

问题回答

就软件而言,不需要除软件以外的任何东西。 NET基类图书馆。

我认为,这一两部分条款非常有用,很有启发性,特别是考虑到你要求“履行1. .独立安排的任务......”。

我没有做出任何承诺,但这种声音像使用

如果是你所期待的一件细表材料,那么你不妨看Quartz.net。 这是一个开放源头的工作时间安排制度。 使用现有工具而不是从零敲碎打中重写工具(除非用于学术目的)。

The framework is .Net! :- WCF for the communication and WF for the implementation. 在网络4中,这些网络作为世界资源中心的工作流程服务站聚集在一起。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签