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-13 19:38:54 +03:00
|
|
|
var builder = new FullMixBuilder();
|
|
|
|
|
builder.UseJsonSerialisation();
|
|
|
|
|
builder.UseNetworkGateway(new IPEndPoint(IPAddress.Loopback, 4567));
|
|
|
|
|
builder.UseStreamInteraction();
|
|
|
|
|
builder.UseBasicExecution();
|
|
|
|
|
builder.UseCollectableContextRepository(typeof(PrinterFactory).Assembly);
|
|
|
|
|
builder.SetupMethodsRepository(new CoCodegenMethodRepository());
|
|
|
|
|
builder.Modules.Add(new StaticSerialisationModuleProducer());
|
2025-02-05 15:08:38 +03:00
|
|
|
|
2025-02-13 19:38:54 +03:00
|
|
|
builder.Build();
|
2025-02-07 16:53:12 +03:00
|
|
|
|
2025-02-13 19:38:54 +03:00
|
|
|
|
|
|
|
|
var gateway = builder.GetModule<IGatewayModule>() ;
|
2025-02-05 15:08:38 +03:00
|
|
|
|
|
|
|
|
gateway.Run();
|