Files
mROA/Example.Backend/Program.cs
T

19 lines
569 B
C#

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<IGatewayModule>();
gateway.Run();