Click here to Skip to main content
15,897,704 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.6K   6.9K   69  
Describes how to build a Windows Service using the Pegasus Library.
/********************************************************************************
 * Copyright © 2002 - 2007, Blane Nelson, All Rights Reserved.
 * 
 * This program is free software; you can redistribute it and/or modify it under 
 * the terms of the GNU General Public License as published by the Free Software 
 * Foundation; either version 2 of the License, or (at your option) any later 
 * version.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY 
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
 * PARTICULAR PURPOSE.  See the GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License (License.txt)
 * along with this library; You can download a copy from http://www.gnu.org or 
 * write to the 
 *
 *		Free Software Foundation, Inc., 
 *		51 Franklin St, Fifth Floor, 
 *		Boston, MA  02110-1301  USA
 * 
 *******************************************************************************/

using System;
using System.Security;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Security.Permissions;

[assembly: AssemblyProduct( "Pegasus .NET Library" )]
[assembly: AssemblyTitle( "Pegasus.Library" )]
[assembly: AssemblyDescription( "Pegasus .NET Library" )]
[assembly: AssemblyCompany( "Pegasus" )]
[assembly: AssemblyCopyright( "Copyright © 2002-2007, Blane Nelson.  All Rights Reserved. (Licensed under GPL)" )]
[assembly: AssemblyTrademark( "" )]
[assembly: AssemblyCulture( "" )]

[assembly: AssemblyVersion( "2.1.20.0" )]
[assembly: AssemblyInformationalVersion( "2.1.20.0" )]

#if DEBUG
[assembly: AssemblyConfiguration( "Debug" )]
#else
[assembly: AssemblyConfiguration( "Release" )]
#endif

// Because we are strongly named we still need to allow partially trusted callers
[assembly: System.Security.AllowPartiallyTrustedCallers]

// Configure log4net using the .config file.  This will cause the log4net APIs to look for a configuration file
// called TestApp.exe.config in the application base directory (i.e. the directory containing TestApp.exe)
// The config file will be watched for changes and log4net will reconfigure when this file is changed.
// NOTE: This is the name of the application exe file that is using Pegasus and not the Pegasus dlls.
[assembly: Pegasus.Log4Net.Config.XmlConfigurator( Watch = true )]

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