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.
22 lines
450 B
22 lines
450 B
using System;
|
|
using ZeroLevel;
|
|
using ZeroLevel.Services.Applications;
|
|
|
|
namespace TestApp
|
|
{
|
|
public class MyService
|
|
: BaseZeroService
|
|
{
|
|
protected override void StartAction()
|
|
{
|
|
Log.Info("Started");
|
|
Sheduller.RemindEvery(TimeSpan.FromSeconds(5), () => Log.Info("Still alive"));
|
|
}
|
|
|
|
protected override void StopAction()
|
|
{
|
|
Log.Info("Stopped");
|
|
}
|
|
}
|
|
}
|