feature: In-App Simulation Runner (Backend)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.CommandLine;
|
||||
using VigilCare.Simulation;
|
||||
|
||||
public static class DryRunCommand
|
||||
{
|
||||
@@ -21,7 +22,7 @@ public static class DryRunCommand
|
||||
return;
|
||||
}
|
||||
|
||||
var engine = new ReplayEngine(client: null!, poller: null);
|
||||
var engine = new ReplayEngine(client: null!, poller: null, new ConsoleReplayObserver());
|
||||
await engine.RunAsync(scenario, new ReplayOptions(DryRun: true));
|
||||
}, fileArg);
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.CommandLine;
|
||||
using VigilCare.Simulation;
|
||||
|
||||
public static class ReplayAllCommand
|
||||
{
|
||||
@@ -38,7 +39,7 @@ public static class ReplayAllCommand
|
||||
await client.LoginAsync(username, password);
|
||||
SimulatorConsole.Info("Authenticated.");
|
||||
|
||||
var engine = new ReplayEngine(client, poller: null);
|
||||
var engine = new ReplayEngine(client, poller: null, new ConsoleReplayObserver());
|
||||
var results = new List<ReplayResult>();
|
||||
|
||||
foreach (var file in files)
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.CommandLine;
|
||||
using VigilCare.Simulation;
|
||||
|
||||
public static class ReplayCommand
|
||||
{
|
||||
@@ -86,7 +87,7 @@ public static class ReplayCommand
|
||||
}
|
||||
|
||||
var poller = poll ? new ApiPoller(client) : null;
|
||||
var engine = new ReplayEngine(client, poller);
|
||||
var engine = new ReplayEngine(client, poller, new ConsoleReplayObserver());
|
||||
var options = new ReplayOptions(
|
||||
speed, poll, pollInterval, DryRun: false,
|
||||
Target: gateway ? ReplayTarget.Gateway : ReplayTarget.Central,
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.CommandLine;
|
||||
using VigilCare.Simulation;
|
||||
|
||||
public static class ValidateCommand
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user