C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Windows Services Part I


Posted Date: 10 Mar 2004    Resource Type: Articles    Category: .NET Framework
Author: ManojRajanMember Level: Gold    
Rating: Points: 10



Windows Services Part I

There are several processes running in the background without any interaction with the user, which are consumed by the application to perform tasks in response to the events in the system. These processes in windows environment are termed as Windows Service. The services are started automatically on the startup regardless of the user logged in. You can configure and manage the service using the Service mmc applet in the control panel, administrative tools.
Where you can view the status and other information regarding a service. The status has values Started, Stopped and Paused; you can also specify the startup mode of the service. That is whether the service is started automatically on windows startup or need a manual startup. You can also configure an account, for the service to login and the startup parameters for the service. You can also see various dependencies of a particular service. Unlike the installation of other applications, service installation requires a special installation procedure.

Earlier versions of Visual Basic did not offer direct support for the creation of windows services, but you can use C++ in earlier versions. The .NET provides several classes to create windows services.

System.ServiceProcess.ServiceBase : This is the base class from which new services are derived.

System.Configuration.Install.Installer : The new service class must inherit and extend this generic class to provide the interface necessary to install the service under windows.

System.ServiceProcess.ServiceProcessInstaller : To install the .NET services , you need this class. The InstallUtil.exe calls this class to get the information it needs to perform the installation.

System.ServiceProcess.ServiceInstaller : This class is needed for the service installation, which contains the information of a specific service in the executable.

Detailed examples for windows services are coming in Part II




Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Working with Exceptions - Part IV (User Defined Exceptions)
Previous Resource: Validate an IP address
Return to Discussion Resource Index
Post New Resource
Category: .NET Framework


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use