mirror of https://github.com/ogoun/Zero.git
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.
39 lines
721 B
39 lines
721 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()
|
|
{
|
|
}
|
|
}
|
|
|
|
internal class Program
|
|
{
|
|
private static void Main(string[] args)
|
|
{
|
|
Bootstrap.Startup<MyFirstApp>(args);
|
|
}
|
|
}
|
|
} |