Windows Service Programming, Debugging, Installing in C#.Net




Windows Service Programming, Debugging, Installing in C#.Net

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 key 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++. 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 Primer

In section two, you will create a new Windows Service project in Visual Studio and utilize installutil to install or uninstall a Windows Service. InstallUtil comes bundled with the .Net framework. 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# .Net

In section three, you will learn 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 purposes 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 usages of Windows Service

In 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 very popular among password synchronization applications for updating domain passwords into online portals based on password filter-related events.

Advanced Windows Service Programming

The following section concerns topics like 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 Setup

The 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. 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 also show you how to install a windows service without installutil.

Creating & maintaining Windows Services in C# .Net is very easy compared to 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, sir! can take advantage of my experience and learn it quickly by joining this course. Sign up, and I will see you inside!

Create Windows Services on in C# .Net and Visual Studio, Windows service debugging techniques

Url: View Details

What you will learn
  • Create new Windows Services in C# .Net which run in background
  • Debug & Maintain Existing Windows Services in C#
  • Use Apache Log4Net logging library in a C# Project

Rating: 4.5

Level: All Levels

Duration: 1.5 hours

Instructor: Naeem Akram


Courses By:   0-9  A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z 

About US

The display of third-party trademarks and trade names on this site does not necessarily indicate any affiliation or endorsement of coursescompany.com.


© 2021 coursescompany.com. All rights reserved.
View Sitemap