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/TestApp/Program.cs

22 lines
519 B

using System;
using System.Net;
using ZeroLevel;
namespace TestApp
{
internal static class Program
{
private static void Main(string[] args)
{
Bootstrap.Startup<MyService>(args,
() => Configuration.ReadSetFromIniFile("config.ini"))
//.ReadServiceInfo()
//.UseDiscovery()
.Run()
.WaitWhileStatus(ZeroServiceStatus.Running)
.Stop();
Bootstrap.Shutdown();
}
}
}

Powered by TurnKey Linux.