еще один шаг до последнего шага

This commit is contained in:
2025-02-13 19:38:54 +03:00
parent 59c77bc9df
commit e5253138db
17 changed files with 125 additions and 31 deletions
+11 -9
View File
@@ -7,16 +7,18 @@ using mROA.Implementation.Backend;
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 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());
builder.Build();
var gateway = bootstrap.GetModule<IGatewayModule>() ;
var gateway = builder.GetModule<IGatewayModule>() ;
gateway.Run();