C# Windows服务开发从入门到精通

一、课程介绍

大家都知道如果想要程序一直运行在windows服务器上,最好是把程序写成windows服务程序;这样程序会随着系统的自动启动而启动,自动关闭而关闭,不需要用户直接登录,直接开机就可以启动。 今天将给大家带来实际项目中经常运用的技术—C# 如何使用创建Windows服务进行应用程序开发。

本课程适合人群如下:

1、有一定的NET开发基础并对Windows服务编程技术有一定了解和认识。

2、进一步加深提高和扩展对Windows服务编程技术的认识视野。

3、喜欢阿笨的干货分享课程的童鞋们。

如果你觉得阿笨的《C# Windows服务开发从入门到精通》分享课程只是仅仅带领大家学习"C#如何一步一步的创建Windows服务应用程序的话,那么你就大错特错了。

阿笨:你说好的给大家带来的干货呢?

如果您同样对本次分享课程感兴趣的话,那么请跟着阿笨一起学习,看看阿笨在实际项目中是如何玩转Windows服务编程技术的吧!

废话不多说,直接上干货,我们不生产干货,我们只是干货的搬运工。

二、涉及覆盖的知识点

2.1、 C# Windows服务应用程序开发零基础上手入门实战演练。

2.2、通过第三方组件 (Topshelf)创建C# Windows服务应用程序。

2.3、分享C# Windows服务编程在实际项目中的一些小技巧和小技能。

1)、掌握常用 Windows服务操作bat命令。

2)、System.Threading.Timer定时器的妙用 。

3)、如何优雅的调试Windows服务应用程序。

4)、如何为应用程序添加管理员权限。

5)、如何通过bat文件制作 Windows服务安装和卸载一键安装包。

6)、系统项目中有很多后台定时任务,我们该怎么办?阿笨推荐采用"按功能模块划分+ 服务自治的原则",进行管理。

本次分享课程最终目的:

熟练地掌握在实际项目开发中遇到此类需求开发场景能够灵活并高效的以优雅方式创建Windows服务应用程序!

三、概念名称含义解释

3.1、什么是计算机服务?

3.2、什么是Windows服务?

3.3、 什么是 Topshelf ?

四、源码在线解读和演示

4.1、 C# Windows服务应用程序开发零基础上手入门实战演练。

4.1.1、C#编写的Windows服务基本应用流程如下:

1)、如何编写windows服务程序。

2)、如何卸载windows服务程序。

3)、如何调试windows服务程序。

4)、如何安装windows服务程序。

4.2、通过第三方组件 (Topshelf)创建C# Windows服务应用程序。

Install-Package Topshelf   Install-Package Topshelf.Log4Net

github官网地址:https://github.com/Topshelf/Topshelf

4.3、分享C# Windows服务编程在实际项目中的一些小技巧和小技能。

1)、掌握常用 Windows服务操作bat命令。

2)、System.Threading.Timer定时器的妙用 。

 如何灵活的解决我们实际项目中经常遇到的定时器执行时间和间隔时间出现的并发问题。

3)、如何优雅的调试Windows服务应用程序

4)、  如何为应用程序添加管理员权限。

5)、  如何通过bat文件制作 Windows服务安装和卸载一键安装包

6)、系统项目中有很多后台定时任务,我们该怎么办?阿笨推荐采用"按功能模块划分+ 服务自治的原则“,进行管理。

 
 

五、总结

如果您想更加全面的学习一下关于阿笨项目中使用Windows服务应用程序的实战技能,推荐大家可以学习一下阿笨早期之前分享的《.NET线程池技术项目实战演练》课程。俗话说的好:师父领进门修行在个人,希望大家在学习的道路上一直坚持下去!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Forger 推荐的学习windows 编程的所有书籍都在这儿: windows 编程 windows MFC入门到精通 windows 高级编程 windows 网络编程 Programming Windows Programming Windows with MFC Programming Applications for Windows Network Programming for Microsoft Windows Programming Windows by Charles Petzold. The book to get on Win32 API. If you want to write programs using just the API (which is what this tutorial covers), you need this book. 如果你想只用windows API编程,这本书是入门经典,你需要这本书。 Programming Windows with MFC by Jeff Prosise. If you want to venture into MFC (AFTER becoming fully accustomed to using the Win32 API), this is the book for you. If you don't like MFC but intend on getting a job doing windows developement, get this anyway, it's better to know than not. 如果你想用MFC这本书是你想要的 Programming Applications for Windows by Jeffrey Richter. Not for newbies, if you want to be up on managing processes and threads, dlls, windows memory management, exception handling, and hooking into the system, then this is the book for you. 如果你想了解操作系统内幕,这本书是经典,书中包含了进程,线程,动态库,windows内存管理,异常处理。。。 Visual C++ Windows Shell Programming by Dino Esposito. For anyone interested in the visual and user-friendly aspects of windows, this book covers writing extentions to the windows shell, working efficiently with files and drag and drop, customizing the taskbar and windows explorer, and numerous other tricks. Well worthwhile for anyone writing GUI apps in windows. Network Programming for Microsoft Windows Up to date information on network programming, including NetBIOS, mailslots and pipes, and of course the ever important windows sockets, complete with winsock2 and raw sockets. Also contains specific information on the various windows platforms including 2000 and CE.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值