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