diff --git a/Example.Backend/Example.Backend.csproj b/Example.Backend/Example.Backend.csproj
index 4f357b7..b951e33 100644
--- a/Example.Backend/Example.Backend.csproj
+++ b/Example.Backend/Example.Backend.csproj
@@ -14,6 +14,10 @@
+
+
+
+
diff --git a/Example.Backend/Program.cs b/Example.Backend/Program.cs
index 30b50f6..7c5bcc9 100644
--- a/Example.Backend/Program.cs
+++ b/Example.Backend/Program.cs
@@ -34,7 +34,7 @@ class Program
}));
builder.SetupMethodsRepository(new CoCodegenMethodRepository());
builder.Modules.Add(new CreativeRepresentationModuleProducer(
- new IInjectableModule[] { builder.GetModule()! },
+ new IInjectableModule[] { builder.GetModule()! },
typeof(RepresentationModule)));
builder.Modules.Add(new CancellationRepository());
diff --git a/Example.Frontend/Example.Frontend.csproj b/Example.Frontend/Example.Frontend.csproj
index 35760b9..207a2b2 100644
--- a/Example.Frontend/Example.Frontend.csproj
+++ b/Example.Frontend/Example.Frontend.csproj
@@ -9,6 +9,14 @@
9
+
+
+
+
+
+
+
+
diff --git a/mROA.Cbor/mROA.Cbor.csproj b/mROA.Cbor/mROA.Cbor.csproj
index 7f66dce..a2dbaf9 100644
--- a/mROA.Cbor/mROA.Cbor.csproj
+++ b/mROA.Cbor/mROA.Cbor.csproj
@@ -5,6 +5,14 @@
enable
+
+
+
+
+
+
+
+
diff --git a/mROA/Abstract/ICommandExecution.cs b/mROA/Abstract/ICommandExecution.cs
index 210b976..5037a4e 100644
--- a/mROA/Abstract/ICommandExecution.cs
+++ b/mROA/Abstract/ICommandExecution.cs
@@ -5,7 +5,5 @@ namespace mROA.Abstract
public interface ICommandExecution
{
Guid Id { get; set; }
- int ClientId { get; set; }
- int CommandId { get; }
}
}
\ No newline at end of file
diff --git a/mROA/Implementation/Backend/BasicExecutionModule.cs b/mROA/Implementation/Backend/BasicExecutionModule.cs
index 3173d37..c1522ca 100644
--- a/mROA/Implementation/Backend/BasicExecutionModule.cs
+++ b/mROA/Implementation/Backend/BasicExecutionModule.cs
@@ -43,8 +43,7 @@ namespace mROA.Implementation.Backend
_cancellationRepo.FreeCancelation(command.Id);
return new FinalCommandExecution
{
- Id = command.Id,
- CommandId = command.CommandId
+ Id = command.Id
};
}
@@ -76,7 +75,7 @@ namespace mROA.Implementation.Backend
#endif
contextRepository.ClearObject(command.ObjectId);
}
-
+
return result;
}
catch (Exception e)
@@ -84,8 +83,6 @@ namespace mROA.Implementation.Backend
Console.WriteLine(e);
throw;
}
-
-
}
private static ICommandExecution Execute(MethodInfo currentCommand, object context, object? parameter,
@@ -98,19 +95,26 @@ namespace mROA.Implementation.Backend
: new[]
{ parameter };
var finalResult = currentCommand.Invoke(context, finalParameter);
-
- return new TypedFinalCommandExecution
+
+ if (currentCommand.ReturnType.Name == "Void")
{
- CommandId = command.CommandId, Result = finalResult,
- Id = command.Id,
- Type = currentCommand.ReturnType
+ return new FinalCommandExecution
+ {
+ Id = command.Id
+ };
+ }
+
+ return new FinalCommandExecution