From ad4c1afe37c6dd4dc4842b999dfc8322f82f7e36 Mon Sep 17 00:00:00 2001 From: Jason Webb Date: Fri, 10 May 2024 17:53:48 -0600 Subject: [PATCH] Fixed example. --- Build/Build.cs | 2 +- .../Examples.EventHandling.InMemoryEventBus/Program.cs | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/Build/Build.cs b/Build/Build.cs index 6492683e..e4b0e215 100644 --- a/Build/Build.cs +++ b/Build/Build.cs @@ -135,7 +135,7 @@ protected override void OnBuildInitialized() { Log.Information("Generating NuGet packages for projects in solution"); int commitNum = 0; - string NuGetVersionCustom = "2.0.0.879"; + string NuGetVersionCustom = "2.0.0.880"; //if it's not a tagged release - append the commit number to the package version diff --git a/Examples/EventHandling/Examples.EventHandling.InMemoryEventBus/Program.cs b/Examples/EventHandling/Examples.EventHandling.InMemoryEventBus/Program.cs index 50fbeec6..a6532b8a 100644 --- a/Examples/EventHandling/Examples.EventHandling.InMemoryEventBus/Program.cs +++ b/Examples/EventHandling/Examples.EventHandling.InMemoryEventBus/Program.cs @@ -24,12 +24,7 @@ .WithEventHandling(eventHandling => { eventHandling.AddProducer(); - - // You can add subscribers this way which is pretty straight forward but verbose - //eventHandling.AddSubscriber(); - - // Or this way which uses a little magic but is simple - eventHandling.AddSubscribers((typeof(Program).GetTypeInfo().Assembly)); + eventHandling.AddSubscriber(); }); }).Build();