using System.Net; using Example.Backend; using mROA.Codegen; using mROA.Implementation; using mROA.Implementation.Bootstrap; var bootstrap = new FullMixBuilder(); bootstrap.UseJsonSerialisation(); bootstrap.UseNetworkGateway(new IPEndPoint(IPAddress.Loopback, 4567)); bootstrap.UseStreamInteraction(); bootstrap.UseBasicExecution(); bootstrap.UseCollectableContextRepository(typeof(PrinterFactory).Assembly); bootstrap.SetupMethodsRepository(new CoCodegenMethodRepository()); bootstrap.Build(); var gateway = bootstrap.GetModule(); gateway.Run();