From eca927eb214de812cee0c91aa38dfe1e23b5e922 Mon Sep 17 00:00:00 2001 From: Mikhail Mitrofanov Date: Fri, 14 Mar 2025 13:29:28 +0300 Subject: [PATCH] =?UTF-8?q?=D0=91=D0=BE=D0=BB=D0=B5=D0=B5=20=D1=82=D0=BE?= =?UTF-8?q?=D1=87=D0=BD=D0=BE=D0=B5=20=D0=B8=D0=B7=D0=BC=D0=B5=D1=80=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=B2=D1=80=D0=B5=D0=BC=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=20=D0=BE=D0=B1=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mROA/Implementation/Frontend/RequestExtractor.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mROA/Implementation/Frontend/RequestExtractor.cs b/mROA/Implementation/Frontend/RequestExtractor.cs index 83aecb1..032a682 100644 --- a/mROA/Implementation/Frontend/RequestExtractor.cs +++ b/mROA/Implementation/Frontend/RequestExtractor.cs @@ -11,10 +11,10 @@ namespace mROA.Implementation.Frontend { public class RequestExtractor : IRequestExtractor { - private IContextRepository? _realContextRepository; - private IContextRepository? _remoteContextRepository; private IExecuteModule? _executeModule; private IMethodRepository? _methodRepository; + private IContextRepository? _realContextRepository; + private IContextRepository? _remoteContextRepository; private IRepresentationModule? _representationModule; private ISerializationToolkit? _serializationToolkit; @@ -65,7 +65,7 @@ namespace mROA.Implementation.Frontend if (sw.IsRunning) { sw.Stop(); - Console.WriteLine($"Request handling took {sw.ElapsedMilliseconds} milliseconds."); + Console.WriteLine($"Request handling took {Math.Round(sw.Elapsed.TotalMilliseconds * 1000.0)} microseconds."); } #endif var tokenSource = new CancellationTokenSource(); @@ -121,7 +121,7 @@ namespace mROA.Implementation.Frontend if (_methodRepository == null) throw new NullReferenceException("Method repository is null."); } - + private void HandleCancelRequest(CancellationTokenSource tokenSource, CancelRequest req) { tokenSource.Cancel(); @@ -141,7 +141,7 @@ namespace mROA.Implementation.Frontend ExceptionCommandExecution => MessageType.ExceptionCommandExecution, _ => MessageType.Unknown }; - + _representationModule!.PostCallMessage(request.Id, resultType, result, result.GetType()); }