Skip to content

Commit 7fb481c

Browse files
Simplify empty SomeCommand class
Co-authored-by: Mauro Servienti <[email protected]>
1 parent 725b38a commit 7fb481c

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

samples/logging/datadog/Core_10/Endpoint/LoadSimulator.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,7 @@ TimeSpan NextDelay()
4343
return delay;
4444
}
4545

46-
Task Work()
47-
{
48-
return endpointInstance.SendLocal(new SomeCommand());
49-
}
46+
Task Work() => endpointInstance.SendLocal(new SomeCommand());
5047

5148
public Task Stop()
5249
{
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
using NServiceBus;
22

3-
class SomeCommand : ICommand
4-
{
5-
}
3+
class SomeCommand : ICommand;

0 commit comments

Comments
 (0)