You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Zero/ZeroExample/Program.cs

27 lines
625 B

using ZeroLevel;
using ZeroLevel.Services.Applications;
namespace ZeroExample
{
public sealed class MyFirstApp
: BaseWindowsService, IZeroService
{
public MyFirstApp() : base("MyApp") { Log.AddConsoleLogger(); }
public override void PauseAction() { }
public override void ResumeAction() { }
public override void StartAction()
{
Log.Info("Started");
}
public override void StopAction() { }
}
class Program
{
static void Main(string[] args)
{
Bootstrap.Startup<MyFirstApp>(args);
}
}
}

Powered by TurnKey Linux.