using System; using System.Net; using ZeroLevel; namespace TestApp { internal static class Program { private static void Main(string[] args) { var se = Bootstrap.Startup(args, () => Configuration.ReadSetFromIniFile("config.ini")) .ReadServiceInfo() //.UseDiscovery() .Run(); var router = se.Service.UseHost(8800); router.RegisterInbox("upper", (c, s) => s.ToUpperInvariant()); se.WaitWhileStatus(ZeroServiceStatus.Running) .Stop(); } } }