|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/windows-service-programming/
课程评论:没有评论
课程名称:Windows服务编程、调试和安装(C#.Net) 课程概述: 本课程教授如何在Visual Studio中使用C#.Net创建Windows服务。Windows服务是Microsoft Windows操作系统中的重要组成部分。课程分为多个部分,内容包括: 1. **C#中Windows服务编程入门**: 学习Windows服务应用程序的定义和结构,了解Windows服务与其他应用类型(如控制台应用程序)的区别。此外,学习Windows服务控制管理器(SCM)及其运行方式,SCM可显示Windows服务列表。 2. **C#.Net中的Windows服务编程**: 在Visual Studio中创建新的Windows服务项目,并使用安装工具(InstallUtil)进行安装或卸载。学习Windows服务的状态、登录类型和启动类型,以及如何使用事件查看器查看新服务生成的事件。 3. **Visual Studio和C#.Net中的Windows服务调试技术**: 学习如何在Visual Studio中调试基于C#.Net的Windows服务程序,包括设置断点和添加监视变量的技巧。同时,集成Apache Log4Net日志库,用于生成滚动日志文件。 4. **Windows服务的实际应用**: 探讨一些现实场景,例如文件同步Windows服务(使用FileSystemWatcher)和定期数据更新服务(使用System.Threading.Timer),并了解这些服务的工作原理。 5. **高级Windows服务编程**: 了解如何更改Windows服务配置(app.config)中的值,并使用.Net框架的ServiceController类创建管理应用程序。该应用程序能够启动/停止服务,并获取服务状态。 6. **使用Inno Setup安装Windows服务**: 学习如何创建安装程序,以便在客户端机器上安装Windows服务。该部分内容应学生要求而加入,使用免费软件InnoSetup。 本课程内容丰富,适合希望深入了解Windows服务的开发者。通过学习,您将能够轻松创建和维护C#.Net中的Windows服务,掌握命令行操作,并有效地管理服务。欢迎报名参加,一起探索Windows服务编程的奥秘!
This course teaches you how to create Windows services in Visual Studio in C#.Net. Multiple techniques to debug a Windows Service in Visual Studio. Windows Services are a vital component of the Microsoft Windows operating system. The course is divided into various sections.Introduction to Windows Service Programming in C#You will learn the definition and anatomy of a Windows Service application. In the past, NT service was used for a Windows Service. You will also understand the difference between a Windows Service and other application types like console applications. This section is not dependent on any programming language like C#.Net or C++. Finally, you will learn what Windows Service Control Manager(SCM) is and how to run it from the run prompt. SCM shows a Windows Services List. Windows Service Programming in C#.Net PrimerIn section two, you will create a new Windows Service project in Visual Studio and utilize installation to install or uninstall a Windows Service. InstallUtil comes bundled with the.Net framework. Next, I'll show you what Windows Service Control Manager is. What are Windows Service statuses, login types, and service startup types? A Windows server service is the same as a Windows NT service. After this, you will open the Windows Event Viewer to see the events generated by your newly born service.Windows Service Debugging Techniques in Visual Studio and C#.NetSection three will teach you how to debug a C#.Net-based Windows Service program in Visual Studio.Techniques for setting breakpoints and getting inside the C#.Net code to add watches for debugging will be shown. You will also see how to integrate the Apache Log4Net logging library into your C#.Net Windows Service project. Apache Log4Net is a free & open-source library that lets you generate rolling log files based on the Log4J library.Practical Use of Windows ServiceIn the next section, you will look into a few real-world scenarios like a file synchronization Windows service with FileSystemWatcher and a periodic data update service(similar to an ETL) with System.Threading.Timer. File sync-type services were once top-rated among password synchronization applications for updating domain passwords into online portals based on password filter-related events. Advanced Windows Service ProgrammingThe following section concerns changing values in Windows Service configuration(app. config) and using the.Net framework ServiceController class. This section will create an admin application for a Windows Service. This application will be able to start/stop service and get service status as well. We will use C#.Net and WinForms for this purpose. The concepts shown herein will apply to WPF applications as well. Installing a Windows Service with Inno SetupThe last section was added on student demand. It is about creating an installer to install Windows Service on a client machine. We will use the free software InnoSetup for this purpose. Then, A Windows service is a program that runs in the background of a Windows operating system and performs specific tasks. It is designed to start automatically when the computer boots up and can operate without any user interaction. Windows services are typically used to provide functionality to other programs or to perform system-level tasks. They can be managed through the Windows Services console, which allows users to start, stop, pause, and resume services as needed. Overall, Windows services are an essential part of the Windows operating system and help to ensure that it runs smoothly and efficiently. I'll show you how to use SC.exe to perform Windows Service control-related operations from the command line. It is mandatory to know how to create a Windows service command line using the SC command. I will also show you how to install a Windows service without installation.Creating & maintaining Windows Services in C#.Net is easier than C++-based services. Windows Services are run not only on Windows Servers but on desktop machines. Their usefulness is universal.Windows Services is an advanced C# and OS concept. I learned Windows Service programming the hard way, on my own. You can take advantage of my experience and learn it quickly by joining this course. So sign up, and I will see you inside!It is possible to create a Windows Service in VB.Net too but it is not recommended.