From 3371560abdaa2d7f936004da6079c1da8904f041 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 19 Dec 2025 14:00:25 +0000 Subject: [PATCH 1/9] Initial plan From 4775920c1fab686d5ee951352f49a2d16984a1a1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 19 Dec 2025 14:04:49 +0000 Subject: [PATCH 2/9] Add .NET Aspire orchestration to Chapter 4 Co-authored-by: kamilbaczek <74410956+kamilbaczek@users.noreply.github.com> --- .../Directory.Build.props | 9 ++++++ .../Directory.Packages.props | 10 +++++++ .../Fitnet.AppHost/Fitnet.AppHost.csproj | 19 +++++++++++++ .../Fitnet.AppHost/Program.cs | 28 +++++++++++++++++++ .../Fitnet.AppHost/appsettings.json | 9 ++++++ .../EventBus/EventBusModule.cs | 19 +++++++++++++ .../Common/EventBus/EventBusModule.cs | 20 +++++++++++++ .../README.adoc | 20 +++++++++++++ 8 files changed, 134 insertions(+) create mode 100644 Chapter-4-applying-tactical-domain-driven-design/Directory.Build.props create mode 100644 Chapter-4-applying-tactical-domain-driven-design/Directory.Packages.props create mode 100644 Chapter-4-applying-tactical-domain-driven-design/Fitnet.AppHost/Fitnet.AppHost.csproj create mode 100644 Chapter-4-applying-tactical-domain-driven-design/Fitnet.AppHost/Program.cs create mode 100644 Chapter-4-applying-tactical-domain-driven-design/Fitnet.AppHost/appsettings.json diff --git a/Chapter-4-applying-tactical-domain-driven-design/Directory.Build.props b/Chapter-4-applying-tactical-domain-driven-design/Directory.Build.props new file mode 100644 index 00000000..ed1f7a46 --- /dev/null +++ b/Chapter-4-applying-tactical-domain-driven-design/Directory.Build.props @@ -0,0 +1,9 @@ + + + + net9.0 + enable + enable + + + diff --git a/Chapter-4-applying-tactical-domain-driven-design/Directory.Packages.props b/Chapter-4-applying-tactical-domain-driven-design/Directory.Packages.props new file mode 100644 index 00000000..51211cac --- /dev/null +++ b/Chapter-4-applying-tactical-domain-driven-design/Directory.Packages.props @@ -0,0 +1,10 @@ + + + true + + + + + + + diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.AppHost/Fitnet.AppHost.csproj b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.AppHost/Fitnet.AppHost.csproj new file mode 100644 index 00000000..915394c4 --- /dev/null +++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.AppHost/Fitnet.AppHost.csproj @@ -0,0 +1,19 @@ + + + + Exe + true + + + + + + + + + + + + + + diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.AppHost/Program.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.AppHost/Program.cs new file mode 100644 index 00000000..bfddfda6 --- /dev/null +++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.AppHost/Program.cs @@ -0,0 +1,28 @@ +using Projects; + +var builder = DistributedApplication.CreateBuilder(args); + +var postgres = builder.AddPostgres("postgres") + .WithImage("postgres", "14.3") + .WithPgAdmin(); + +var fitnetDatabase = postgres.AddDatabase("fitnetsdb", "fitnet"); + +var rabbitmq = builder.AddRabbitMQ("rabbitmq") + .WithManagementPlugin(); + +builder.AddProject("fitnet-modular-monolith") + .WithEnvironment("ASPNETCORE_ENVIRONMENT", "Development") + .WithReference(fitnetDatabase, "Database__ConnectionString") + .WithReference(rabbitmq, "EventBus__ConnectionString") + .WaitFor(postgres) + .WaitFor(rabbitmq); + +builder.AddProject("fitnet-contracts-microservice") + .WithEnvironment("ASPNETCORE_ENVIRONMENT", "Development") + .WithReference(fitnetDatabase, "Database__ConnectionString") + .WithReference(rabbitmq, "EventBus__ConnectionString") + .WaitFor(postgres) + .WaitFor(rabbitmq); + +await builder.Build().RunAsync(); diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.AppHost/appsettings.json b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.AppHost/appsettings.json new file mode 100644 index 00000000..c06aa74a --- /dev/null +++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.AppHost/appsettings.json @@ -0,0 +1,9 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning", + "Aspire.Hosting.DistributedApplication": "Information" + } + } +} diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/EventBus/EventBusModule.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/EventBus/EventBusModule.cs index b9c03abf..4003fc92 100644 --- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/EventBus/EventBusModule.cs +++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/EventBus/EventBusModule.cs @@ -24,6 +24,25 @@ internal static IServiceCollection AddEventBus(this IServiceCollection services, return; } + var uri = options.Value.Uri; + var username = options.Value.Username; + var password = options.Value.Password; + + if (!string.IsNullOrEmpty(uri)) + { + factoryConfigurator.Host(uri, h => + { + if (!string.IsNullOrEmpty(username)) + { + h.Username(username); + } + if (!string.IsNullOrEmpty(password)) + { + h.Password(password); + } + }); + } + factoryConfigurator.ConfigureEndpoints(context); }); }); diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.Api/Common/EventBus/EventBusModule.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.Api/Common/EventBus/EventBusModule.cs index 5740084e..71b5db88 100644 --- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.Api/Common/EventBus/EventBusModule.cs +++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.Api/Common/EventBus/EventBusModule.cs @@ -26,6 +26,26 @@ internal static IServiceCollection AddEventBus(this IServiceCollection services, { return; } + + var uri = options.Value.Uri; + var username = options.Value.Username; + var password = options.Value.Password; + + if (!string.IsNullOrEmpty(uri)) + { + factoryConfigurator.Host(uri, h => + { + if (!string.IsNullOrEmpty(username)) + { + h.Username(username); + } + if (!string.IsNullOrEmpty(password)) + { + h.Password(password); + } + }); + } + factoryConfigurator.ConfigureEndpoints(context); }); configurator.ConfigureOutbox(); diff --git a/Chapter-4-applying-tactical-domain-driven-design/README.adoc b/Chapter-4-applying-tactical-domain-driven-design/README.adoc index dd2d62a4..dd737765 100644 --- a/Chapter-4-applying-tactical-domain-driven-design/README.adoc +++ b/Chapter-4-applying-tactical-domain-driven-design/README.adoc @@ -374,6 +374,26 @@ The `Contracts` microservice runs on port `:8081`. Please navigate to http://loc That's it! You should now be able to run the application using either one of the above. :thumbsup: +=== Run with .NET Aspire + +The Fitnet application uses .NET Aspire for local development. + +To run the application locally using Aspire, follow these steps: + +1. **Ensure Docker is running** on your machine. +2. **Navigate to the AppHost directory:** +[source,shell] +---- +cd Fitnet.AppHost +---- +3. **Run the AppHost project:** +[source,shell] +---- +dotnet run +---- + +The Aspire Dashboard will open automatically, showing all services, resources, and logs. + === Building and debugging code in Rider IDE Before you build or debug code in `Rider` or `Visual Studio` IDE, you first have to provide your username and previously generated PAT for artifactory to download packages for `Common` which is a part of this repository. When you load the solution, your IDE should request the credentials: From 98b3cde796d04c142d582a128ded1fe6e206def5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 19 Dec 2025 14:07:39 +0000 Subject: [PATCH 3/9] Remove Directory props files and add versions to AppHost.csproj Co-authored-by: kamilbaczek <74410956+kamilbaczek@users.noreply.github.com> --- .../Directory.Build.props | 9 --------- .../Directory.Packages.props | 10 ---------- .../Fitnet.AppHost/Fitnet.AppHost.csproj | 9 ++++++--- 3 files changed, 6 insertions(+), 22 deletions(-) delete mode 100644 Chapter-4-applying-tactical-domain-driven-design/Directory.Build.props delete mode 100644 Chapter-4-applying-tactical-domain-driven-design/Directory.Packages.props diff --git a/Chapter-4-applying-tactical-domain-driven-design/Directory.Build.props b/Chapter-4-applying-tactical-domain-driven-design/Directory.Build.props deleted file mode 100644 index ed1f7a46..00000000 --- a/Chapter-4-applying-tactical-domain-driven-design/Directory.Build.props +++ /dev/null @@ -1,9 +0,0 @@ - - - - net9.0 - enable - enable - - - diff --git a/Chapter-4-applying-tactical-domain-driven-design/Directory.Packages.props b/Chapter-4-applying-tactical-domain-driven-design/Directory.Packages.props deleted file mode 100644 index 51211cac..00000000 --- a/Chapter-4-applying-tactical-domain-driven-design/Directory.Packages.props +++ /dev/null @@ -1,10 +0,0 @@ - - - true - - - - - - - diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.AppHost/Fitnet.AppHost.csproj b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.AppHost/Fitnet.AppHost.csproj index 915394c4..b9f1b186 100644 --- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.AppHost/Fitnet.AppHost.csproj +++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.AppHost/Fitnet.AppHost.csproj @@ -2,13 +2,16 @@ Exe + net9.0 + enable + enable true - - - + + + From 684d2295ec9445779bcbdb4d18cc2e4b16ecd21d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 19 Dec 2025 14:12:23 +0000 Subject: [PATCH 4/9] Remove trailing newlines from AppHost files Co-authored-by: kamilbaczek <74410956+kamilbaczek@users.noreply.github.com> --- .../Fitnet.AppHost/Fitnet.AppHost.csproj | 2 +- .../Fitnet.AppHost/Program.cs | 2 +- .../Fitnet.AppHost/appsettings.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.AppHost/Fitnet.AppHost.csproj b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.AppHost/Fitnet.AppHost.csproj index b9f1b186..1c918132 100644 --- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.AppHost/Fitnet.AppHost.csproj +++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.AppHost/Fitnet.AppHost.csproj @@ -19,4 +19,4 @@ - + \ No newline at end of file diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.AppHost/Program.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.AppHost/Program.cs index bfddfda6..19045535 100644 --- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.AppHost/Program.cs +++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.AppHost/Program.cs @@ -25,4 +25,4 @@ .WaitFor(postgres) .WaitFor(rabbitmq); -await builder.Build().RunAsync(); +await builder.Build().RunAsync(); \ No newline at end of file diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.AppHost/appsettings.json b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.AppHost/appsettings.json index c06aa74a..7e1692a8 100644 --- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.AppHost/appsettings.json +++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.AppHost/appsettings.json @@ -6,4 +6,4 @@ "Aspire.Hosting.DistributedApplication": "Information" } } -} +} \ No newline at end of file From 6ad08882883c851bf90934148790e9a54544fc30 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 25 Jan 2026 20:09:51 +0000 Subject: [PATCH 5/9] Fix null reference dereference in EventBusModule Co-authored-by: kamilbaczek <74410956+kamilbaczek@users.noreply.github.com> --- .../EventBus/EventBusModule.cs | 6 +++--- .../Fitnet.Passes.Api/Common/EventBus/EventBusModule.cs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/EventBus/EventBusModule.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/EventBus/EventBusModule.cs index 4003fc92..4cde4ddf 100644 --- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/EventBus/EventBusModule.cs +++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/EventBus/EventBusModule.cs @@ -24,9 +24,9 @@ internal static IServiceCollection AddEventBus(this IServiceCollection services, return; } - var uri = options.Value.Uri; - var username = options.Value.Username; - var password = options.Value.Password; + var uri = options.Value?.Uri; + var username = options.Value?.Username; + var password = options.Value?.Password; if (!string.IsNullOrEmpty(uri)) { diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.Api/Common/EventBus/EventBusModule.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.Api/Common/EventBus/EventBusModule.cs index 71b5db88..b9398c3f 100644 --- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.Api/Common/EventBus/EventBusModule.cs +++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.Api/Common/EventBus/EventBusModule.cs @@ -27,9 +27,9 @@ internal static IServiceCollection AddEventBus(this IServiceCollection services, return; } - var uri = options.Value.Uri; - var username = options.Value.Username; - var password = options.Value.Password; + var uri = options.Value?.Uri; + var username = options.Value?.Username; + var password = options.Value?.Password; if (!string.IsNullOrEmpty(uri)) { From 3863ac930df7f4395225e4804282f304a2f12be8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 25 Jan 2026 20:13:46 +0000 Subject: [PATCH 6/9] Use central package management and fix formatting Co-authored-by: kamilbaczek <74410956+kamilbaczek@users.noreply.github.com> --- .../Directory.Build.props | 9 +++++++++ .../Directory.Packages.props | 10 ++++++++++ .../Fitnet.AppHost/Fitnet.AppHost.csproj | 9 +++------ .../EventBus/EventBusModule.cs | 1 - .../Common/EventBus/EventBusModule.cs | 1 - 5 files changed, 22 insertions(+), 8 deletions(-) create mode 100644 Chapter-4-applying-tactical-domain-driven-design/Directory.Build.props create mode 100644 Chapter-4-applying-tactical-domain-driven-design/Directory.Packages.props diff --git a/Chapter-4-applying-tactical-domain-driven-design/Directory.Build.props b/Chapter-4-applying-tactical-domain-driven-design/Directory.Build.props new file mode 100644 index 00000000..3f4ecf32 --- /dev/null +++ b/Chapter-4-applying-tactical-domain-driven-design/Directory.Build.props @@ -0,0 +1,9 @@ + + + + net10.0 + enable + enable + + + diff --git a/Chapter-4-applying-tactical-domain-driven-design/Directory.Packages.props b/Chapter-4-applying-tactical-domain-driven-design/Directory.Packages.props new file mode 100644 index 00000000..6e28deb7 --- /dev/null +++ b/Chapter-4-applying-tactical-domain-driven-design/Directory.Packages.props @@ -0,0 +1,10 @@ + + + true + + + + + + + diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.AppHost/Fitnet.AppHost.csproj b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.AppHost/Fitnet.AppHost.csproj index 1c918132..7f5fd06d 100644 --- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.AppHost/Fitnet.AppHost.csproj +++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.AppHost/Fitnet.AppHost.csproj @@ -2,16 +2,13 @@ Exe - net9.0 - enable - enable true - - - + + + diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/EventBus/EventBusModule.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/EventBus/EventBusModule.cs index 4cde4ddf..0803d39b 100644 --- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/EventBus/EventBusModule.cs +++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/EventBus/EventBusModule.cs @@ -27,7 +27,6 @@ internal static IServiceCollection AddEventBus(this IServiceCollection services, var uri = options.Value?.Uri; var username = options.Value?.Username; var password = options.Value?.Password; - if (!string.IsNullOrEmpty(uri)) { factoryConfigurator.Host(uri, h => diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.Api/Common/EventBus/EventBusModule.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.Api/Common/EventBus/EventBusModule.cs index b9398c3f..73a4c2dc 100644 --- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.Api/Common/EventBus/EventBusModule.cs +++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.Api/Common/EventBus/EventBusModule.cs @@ -30,7 +30,6 @@ internal static IServiceCollection AddEventBus(this IServiceCollection services, var uri = options.Value?.Uri; var username = options.Value?.Username; var password = options.Value?.Password; - if (!string.IsNullOrEmpty(uri)) { factoryConfigurator.Host(uri, h => From d08e267ad4da053463fc540e41c8709b30c72989 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 25 Jan 2026 20:33:46 +0000 Subject: [PATCH 7/9] Fix IDE0055 formatting - remove blank line before ConfigureEndpoints Co-authored-by: kamilbaczek <74410956+kamilbaczek@users.noreply.github.com> --- .../Fitnet.Contracts.Infrastructure/EventBus/EventBusModule.cs | 1 - .../Passes/Fitnet.Passes.Api/Common/EventBus/EventBusModule.cs | 1 - 2 files changed, 2 deletions(-) diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/EventBus/EventBusModule.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/EventBus/EventBusModule.cs index 0803d39b..c002cebe 100644 --- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/EventBus/EventBusModule.cs +++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/EventBus/EventBusModule.cs @@ -41,7 +41,6 @@ internal static IServiceCollection AddEventBus(this IServiceCollection services, } }); } - factoryConfigurator.ConfigureEndpoints(context); }); }); diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.Api/Common/EventBus/EventBusModule.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.Api/Common/EventBus/EventBusModule.cs index 73a4c2dc..9411af4f 100644 --- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.Api/Common/EventBus/EventBusModule.cs +++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.Api/Common/EventBus/EventBusModule.cs @@ -44,7 +44,6 @@ internal static IServiceCollection AddEventBus(this IServiceCollection services, } }); } - factoryConfigurator.ConfigureEndpoints(context); }); configurator.ConfigureOutbox(); From 02795b65186379146b6962e9d4182788d1f84d0b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 25 Jan 2026 20:36:26 +0000 Subject: [PATCH 8/9] Remove properties from root Directory.Build.props Co-authored-by: kamilbaczek <74410956+kamilbaczek@users.noreply.github.com> --- .../Directory.Build.props | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Chapter-4-applying-tactical-domain-driven-design/Directory.Build.props b/Chapter-4-applying-tactical-domain-driven-design/Directory.Build.props index 3f4ecf32..faf2349b 100644 --- a/Chapter-4-applying-tactical-domain-driven-design/Directory.Build.props +++ b/Chapter-4-applying-tactical-domain-driven-design/Directory.Build.props @@ -1,9 +1,3 @@ - - net10.0 - enable - enable - - From ba7e3f32d2cdfd2fa82e05959811c9f7acbf6be0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 25 Jan 2026 21:05:09 +0000 Subject: [PATCH 9/9] Fix IDE0055 formatting - remove blank line after if statement Co-authored-by: kamilbaczek <74410956+kamilbaczek@users.noreply.github.com> --- .../Fitnet.Contracts.Infrastructure/EventBus/EventBusModule.cs | 1 - .../Passes/Fitnet.Passes.Api/Common/EventBus/EventBusModule.cs | 1 - 2 files changed, 2 deletions(-) diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/EventBus/EventBusModule.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/EventBus/EventBusModule.cs index c002cebe..51551002 100644 --- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/EventBus/EventBusModule.cs +++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/EventBus/EventBusModule.cs @@ -23,7 +23,6 @@ internal static IServiceCollection AddEventBus(this IServiceCollection services, { return; } - var uri = options.Value?.Uri; var username = options.Value?.Username; var password = options.Value?.Password; diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.Api/Common/EventBus/EventBusModule.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.Api/Common/EventBus/EventBusModule.cs index 9411af4f..884aa8f6 100644 --- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.Api/Common/EventBus/EventBusModule.cs +++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.Api/Common/EventBus/EventBusModule.cs @@ -26,7 +26,6 @@ internal static IServiceCollection AddEventBus(this IServiceCollection services, { return; } - var uri = options.Value?.Uri; var username = options.Value?.Username; var password = options.Value?.Password;