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

29 lines
864 B

5 years ago
using ZeroLevel;
5 years ago
using ZeroLevel.Logging;
5 years ago
namespace Processor
{
static class Program
{
static void Main(string[] args)
{
IConfiguration conf = Configuration.Create();
conf.Append("ServiceName", "Test processor");
conf.Append("ServiceKey", "test.processor");
conf.Append("ServiceType", "Core");
conf.Append("ServiceGroup", "Test");
conf.Append("Version", "1.0.0.1");
conf.Append("discovery", "127.0.0.1:5012");
Configuration.Save(conf);
5 years ago
Bootstrap.Startup<ProcessorService>(args)
5 years ago
.EnableConsoleLog(LogLevel.FullStandart)
5 years ago
.UseDiscovery()
.Run()
.WaitWhileStatus(ZeroServiceStatus.Running)
.Stop();
Bootstrap.Shutdown();
}
}
}

Powered by TurnKey Linux.