static void Main(string[] args) { FileStream fileStream = new FileStream("./servers.config.json", FileMode.Open, FileAccess.Read); ServerConfig config = ModelSerializer.ServerConfig(fileStream); ServerBuilder builder = new ServerBuilder(config); controller = new ServerController(config); foreach (ServerManager server in controller.Config.Servers) { server.OutputData_Recived += Server_OutputData_Recived; } builder.BuildComplete += Builder_BuildComplete; builder.Build(); while (!hasExited) { Console.ReadLine(); } }