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.
23 lines
653 B
23 lines
653 B
using ZeroLevel;
|
|
|
|
namespace TestApp
|
|
{
|
|
internal static class Program
|
|
{
|
|
private static void Main(string[] args)
|
|
{
|
|
|
|
|
|
|
|
Configuration.Save(Configuration.ReadFromApplicationConfig());
|
|
Bootstrap.Startup<MyService>(args,
|
|
() => Configuration.ReadSetFromIniFile("config.ini"))
|
|
.EnableConsoleLog(ZeroLevel.Services.Logging.LogLevel.System | ZeroLevel.Services.Logging.LogLevel.FullDebug)
|
|
//.UseDiscovery()
|
|
.Run()
|
|
.WaitWhileStatus(ZeroServiceStatus.Running)
|
|
.Stop();
|
|
Bootstrap.Shutdown();
|
|
}
|
|
}
|
|
} |