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

40 lines
1.1 KiB

5 years ago
using Newtonsoft.Json;
5 years ago
using System;
using System.IO;
using System.Text;
5 years ago
using ZeroLevel;
5 years ago
using ZeroLevel.Implementation.Semantic.Helpers;
5 years ago
using ZeroLevel.Logging;
5 years ago
using ZeroLevel.Services.Serialization;
using ZeroLevel.Services.Trees;
namespace TestApp
{
5 years ago
public class TestQuery
{
public string Name { get; set; }
public int Age { get; set; }
public string[] Roles { get; set; }
}
internal static class Program
{
5 years ago
private static string Serialize(object instance)
{
return JsonConvert.SerializeObject(instance);
}
private static void Main(string[] args)
{
5 years ago
Configuration.Save(Configuration.ReadFromApplicationConfig());
6 years ago
Bootstrap.Startup<MyService>(args,
() => Configuration.ReadSetFromIniFile("config.ini"))
5 years ago
.EnableConsoleLog(LogLevel.System | LogLevel.FullDebug)
//.UseDiscovery()
.Run()
.WaitWhileStatus(ZeroServiceStatus.Running)
.Stop();
5 years ago
Bootstrap.Shutdown();
}
}
6 years ago
}

Powered by TurnKey Linux.