|
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.ServiceProcess;
namespace CodeBlooded.Spades.Services
{
public class SpadesAdminService : SpadesServiceBase
{
public SpadesAdminService()
{
this.ServiceName = "SpadesAdminSvc";
}
/// <summary>
/// Set things in motion so your service can do its work.
/// </summary>
protected override void OnStart(string[] args)
{
base.OnStart( args );
}
/// <summary>
/// Stop this service.
/// </summary>
protected override void OnStop()
{
base.OnStop();
}
/// <summary>
///
/// </summary>
/// <returns></returns>
protected override int Execute() {
// for right now we'll just log a message in the Application message log to let us know that
// our service is working
System.Diagnostics.EventLog.WriteEntry(ServiceName, ServiceName + "::Execute()");
return 0;
}
}
}
|
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.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.