Skip to content

Commit 7a03445

Browse files
committed
Cleanup
1 parent 10b21f7 commit 7a03445

20 files changed

+10
-29
lines changed

src/Billing/Billing.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
</ItemGroup>
1515

1616
<ItemGroup>
17-
<PackageReference Include="NServiceBus" Version="9.*" />
1817
<PackageReference Include="NServiceBus.Heartbeat" Version="5.*" />
1918
<PackageReference Include="NServiceBus.Metrics.ServiceControl" Version="5.*" />
2019
<PackageReference Include="NServiceBus.Persistence.NonDurable" Version="2.*" />

src/Billing/OrderPlacedHandler.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using Messages;
2-
using NServiceBus;
32
using Shared;
43

54
namespace Billing;

src/Billing/Program.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
using System.Reflection;
22
using System.Text.Json;
3-
using Billing;
43
using Messages;
5-
using Microsoft.Extensions.DependencyInjection;
64
using Shared;
75

86
var instancePostfix = args.FirstOrDefault();

src/ClientUI/ClientUI.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
</ItemGroup>
1515

1616
<ItemGroup>
17-
<PackageReference Include="NServiceBus" Version="9.*" />
1817
<PackageReference Include="NServiceBus.Heartbeat" Version="5.*" />
1918
<PackageReference Include="NServiceBus.Metrics.ServiceControl" Version="5.*" />
2019
</ItemGroup>

src/ClientUI/Program.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using System.Diagnostics;
2-
using System.Reflection;
1+
using System.Reflection;
32
using System.Text.Json;
43
using ClientUI;
54
using Messages;

src/ClientUI/SimulatedCustomers.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ class SimulatedCustomers(IEndpointInstance endpointInstance)
77
{
88
public void BindSendingRateDial(UserInterface userInterface, char upKey, char downKey)
99
{
10-
userInterface.BindDial('B', upKey, downKey,
10+
userInterface.BindDial('B', upKey, downKey,
1111
$"Press {upKey} to increase sending rate.{Environment.NewLine}Press {downKey} to decrease it.",
1212
() => $"Sending rate: {rate}", x => rate = x + 1); //Rate is from 1 to 10
1313
}
1414

1515
public void BindDuplicateLikelihoodDial(UserInterface userInterface, char upKey, char downKey)
1616
{
17-
userInterface.BindDial('C', upKey, downKey,
17+
userInterface.BindDial('C', upKey, downKey,
1818
$"Press {upKey} to increase duplicate message rate.{Environment.NewLine}Press {downKey} to decrease it.",
1919
() => $"Duplicate rate: {duplicateLikelihood * 10}%", x => duplicateLikelihood = x);
2020
}

src/MonitoringDemo/DemoLauncher.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,4 @@ public ProcessHandle AddProcess(string name, string instanceId, int port)
4343
private static readonly string SalesPath = Path.Combine("Sales", "Sales.dll");
4444
private static readonly string ClientPath = Path.Combine("ClientUI", "ClientUI.dll");
4545
private static readonly string PlatformPath = Path.Combine("PlatformLauncher", "PlatformLauncher.dll");
46-
47-
4846
}

src/MonitoringDemo/KeyHelper.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ public static bool IsPartOfControllerSequence(this Key k, out string? sequence)
5050
sequence = null;
5151
return false;
5252
}
53-
5453

5554
private static string? currentSequence;
5655
}

src/MonitoringDemo/Program.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System.Diagnostics;
22
using MonitoringDemo;
3-
using System.Reflection.Metadata;
43
using Terminal.Gui;
54

65
CancellationTokenSource tokenSource = new();
@@ -101,7 +100,6 @@ void ApplicationKeyDown(object? sender, Key e)
101100
Application.Shutdown();
102101
return;
103102

104-
105103
static void SwitchWindow(IReadOnlyCollection<ProcessWindow> windowsToHide, View windowToShow, View focusTarget)
106104
{
107105
// Hide all other windows windows

src/Sales/PlaceOrderHandler.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using Messages;
2-
using NServiceBus;
32
using Shared;
43

54
namespace Sales;

0 commit comments

Comments
 (0)