2025-02-05 15:08:38 +03:00
|
|
|
using System.Net;
|
2025-02-05 18:04:35 +03:00
|
|
|
using Example.Backend;
|
2025-02-07 16:53:12 +03:00
|
|
|
using mROA.Abstract;
|
2025-02-05 15:08:38 +03:00
|
|
|
using mROA.Codegen;
|
|
|
|
|
using mROA.Implementation;
|
2025-02-07 16:53:12 +03:00
|
|
|
using mROA.Implementation.Backend;
|
2025-02-05 15:08:38 +03:00
|
|
|
using mROA.Implementation.Bootstrap;
|
2025-02-14 20:24:04 +03:00
|
|
|
using mROA.Implementation.Frontend;
|
2025-02-05 15:08:38 +03:00
|
|
|
|
|
|
|
|
|
2025-02-13 19:38:54 +03:00
|
|
|
var builder = new FullMixBuilder();
|
|
|
|
|
builder.UseJsonSerialisation();
|
|
|
|
|
builder.UseNetworkGateway(new IPEndPoint(IPAddress.Loopback, 4567));
|
|
|
|
|
builder.UseStreamInteraction();
|
|
|
|
|
builder.UseBasicExecution();
|
2025-02-14 22:26:55 +03:00
|
|
|
builder.Modules.Add(new RemoteContextRepository());
|
2025-02-13 19:38:54 +03:00
|
|
|
builder.UseCollectableContextRepository(typeof(PrinterFactory).Assembly);
|
|
|
|
|
builder.SetupMethodsRepository(new CoCodegenMethodRepository());
|
2025-02-14 20:24:04 +03:00
|
|
|
builder.Modules.Add(new CreativeSerializationModuleProducer([], typeof(JsonFrontendSerialisationModule)));
|
2025-02-05 15:08:38 +03:00
|
|
|
|
2025-02-13 19:38:54 +03:00
|
|
|
builder.Build();
|
2025-02-14 22:26:55 +03:00
|
|
|
new RemoteTypeBinder();
|
|
|
|
|
TransmissionConfig.RemoteEndpointContextRepository = builder.GetModule<RemoteContextRepository>();
|
2025-02-13 19:38:54 +03:00
|
|
|
|
|
|
|
|
var gateway = builder.GetModule<IGatewayModule>() ;
|
2025-02-05 15:08:38 +03:00
|
|
|
|
|
|
|
|
gateway.Run();
|