From bb994f6761543faf83580c31b14d3b912709ffa5 Mon Sep 17 00:00:00 2001 From: Mikhail Mitrofanov Date: Tue, 18 Feb 2025 12:34:15 +0300 Subject: [PATCH] =?UTF-8?q?=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=D0=B5?= =?UTF-8?q?=D1=82,=20=D0=BD=D0=BE=20=D1=81=20=D0=BE=D0=B3=D1=80=D0=B0?= =?UTF-8?q?=D0=BD=D0=B8=D1=87=D0=B5=D0=BD=D0=B8=D1=8F=D0=BC=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Example.Frontend/Program.cs | 8 ++++---- mROA/Implementation/RepresentationModule.cs | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Example.Frontend/Program.cs b/Example.Frontend/Program.cs index 64d2872..4a7c009 100644 --- a/Example.Frontend/Program.cs +++ b/Example.Frontend/Program.cs @@ -15,8 +15,9 @@ builder.Modules.Add(new NextGenerationInteractionModule()); builder.Modules.Add(new RepresentationModule()); builder.Modules.Add(new NetworkFrontendBridge(new IPEndPoint(IPAddress.Loopback, 4567))); builder.Modules.Add(new StaticRepresentationModuleProducer()); -// builder.Modules.Add(new BasicExecutionModule()); -// builder.Modules.Add(new CoCodegenMethodRepository()); +builder.Modules.Add(new RequestExtractor()); +builder.Modules.Add(new BasicExecutionModule()); +builder.Modules.Add(new CoCodegenMethodRepository()); // builder.Modules.Add(new StreamBasedVirtualBackendInteractionModule()); // builder.Modules.Add(new JsonSerialisationModule()); builder.UseCollectableContextRepository(); @@ -27,8 +28,7 @@ TransmissionConfig.RealContextRepository = builder.GetModule( TransmissionConfig.RemoteEndpointContextRepository = builder.GetModule(); builder.GetModule()!.Connect(); -// builder.GetModule()!.StartVirtualInteraction(); - + _ = builder.GetModule()!.StartExtraction(); Console.WriteLine(TransmissionConfig.OwnershipRepository!.GetOwnershipId()); var context = builder.GetModule(); diff --git a/mROA/Implementation/RepresentationModule.cs b/mROA/Implementation/RepresentationModule.cs index a8a95f5..dda2a35 100644 --- a/mROA/Implementation/RepresentationModule.cs +++ b/mROA/Implementation/RepresentationModule.cs @@ -1,4 +1,5 @@ -using mROA.Abstract; +using System.Text.Json; +using mROA.Abstract; namespace mROA.Implementation; @@ -37,6 +38,7 @@ public class RepresentationModule : IRepresentationModule while (true) { var message = await _interaction.GetNextMessageReceiving(); + Console.WriteLine("Message received {0}", JsonSerializer.Serialize(message)); if ((requestId is null || message.Id == requestId) && (messageType is null || message.SchemaId == messageType)) return message.Data;