static void Main(string[] args) { Console.Title = "Test"; RunContainer.Build <TestService>(config, builder => { builder.AddSingleton <ClientService>(); }); Console.ReadLine(); }
static void Main(string[] args) { Console.Title = "Gateway"; RunContainer.Build <GatewayService>(config, builder => { builder.AddSingleton <ServerService>(); builder.AddSingleton <GatewayHandler>(); builder.AddSingleton <CrypterService>(); builder.AddSingleton <MapperService>(); }); Console.ReadLine(); }