Click here to Skip to main content
15,892,005 members
Articles / Desktop Programming / Windows Forms

Windows Services Made Simple

Rate me:
Please Sign up or sign in to vote.
4.62/5 (10 votes)
27 Jun 2007CPOL10 min read 94.5K   6.9K   69  
Describes how to build a Windows Service using the Pegasus Library.
namespace Pegasus.Sample.ServiceDebugging
{
	partial class SampleServicetInstaller
	{
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.IContainer components = null;

		/// <summary> 
		/// Clean up any resources being used.
		/// </summary>
		/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
		protected override void Dispose( bool disposing )
		{
			if( disposing && ( components != null ) )
			{
				components.Dispose();
			}
			base.Dispose( disposing );
		}

		#region Component Designer generated code

		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.ProcessServiceInstaller = new System.ServiceProcess.ServiceProcessInstaller();
			this.WindowsServiceInstaller = new System.ServiceProcess.ServiceInstaller();
			// 
			// ProcessServiceInstaller
			// 
			this.ProcessServiceInstaller.Password = null;
			this.ProcessServiceInstaller.Username = null;
			// 
			// WindowsServiceInstaller
			// 
			this.WindowsServiceInstaller.ServiceName = "Service1";
			// 
			// SampleServicetInstaller
			// 
			this.Installers.AddRange( new System.Configuration.Install.Installer[] {
            this.ProcessServiceInstaller,
            this.WindowsServiceInstaller} );

		}

		#endregion

		private System.ServiceProcess.ServiceProcessInstaller ProcessServiceInstaller;
		private System.ServiceProcess.ServiceInstaller WindowsServiceInstaller;
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions