diff options
Diffstat (limited to 'Software/Visual_Studio/Utilities/Tango.Telemetry.Tester.IOT.CLI/Program.cs')
| -rw-r--r-- | Software/Visual_Studio/Utilities/Tango.Telemetry.Tester.IOT.CLI/Program.cs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Software/Visual_Studio/Utilities/Tango.Telemetry.Tester.IOT.CLI/Program.cs b/Software/Visual_Studio/Utilities/Tango.Telemetry.Tester.IOT.CLI/Program.cs index 07d301f3d..4f5e2731a 100644 --- a/Software/Visual_Studio/Utilities/Tango.Telemetry.Tester.IOT.CLI/Program.cs +++ b/Software/Visual_Studio/Utilities/Tango.Telemetry.Tester.IOT.CLI/Program.cs @@ -42,16 +42,16 @@ namespace Tango.Telemetry.Tester.IOT.CLI //publisher.RegisterSource(new JobRunsTestSource()); //publisher.RegisterSource(new DiagnosticsTestSource()); - publisher.RegisterSource(new EventsTestSource()); + //publisher.RegisterSource(new EventsTestSource()); publisher.RegisterSource(new MachineStatusTestSource()); - publisher.RegisterSource(new WiresTestSource()); + //publisher.RegisterSource(new WiresTestSource()); var logsSource = new TelemetryLogsStreamingSource(); logsSource.Config.Categories.Add(LogCategory.Info); - publisher.RegisterSource(logsSource); - publisher.RegisterSource(new TelemetryLogsStreamingSource()); - publisher.RegisterSource(new JobStatusTestSource()); + //publisher.RegisterSource(logsSource); + //publisher.RegisterSource(new TelemetryLogsStreamingSource()); + //publisher.RegisterSource(new JobStatusTestSource()); publisher.RegisterDestination(new TelemetryAzureHubDestination("HostName=iot-twine-dev-weu.azure-devices.net;DeviceId=telemetry-dev-01;SharedAccessKey=cZhCMhiVL+TF7p13fpX+lFmyxoy8ZqCkbxUwumWw18Q=")); //publisher.RegisterDestination(new TelemetryMqttDestination("Telemetry MQTT")); @@ -117,7 +117,7 @@ namespace Tango.Telemetry.Tester.IOT.CLI Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("One or more destinations failed to receive the package."); } - else + else if (e.PublishResult.DestinationsResults.All(x => x.Status == TelemetryPublishResult.DestinationStatus.Passed)) { Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine($"Package {_counter++} successfully published."); @@ -300,7 +300,7 @@ namespace Tango.Telemetry.Tester.IOT.CLI { Task.Factory.StartNew(() => { - for (int i = 10; i < 20; i++) + for (int i = 0; i < 10000; i++) { TelemetryAvailable?.Invoke(this, new TelemetryAvailableEventArgs() { |
