From 2e7c53aa8f2abc9f3fcd3d613e4409551a59234c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20=C3=87etinkaya?= Date: Wed, 7 Feb 2024 16:30:57 +0300 Subject: [PATCH] build: upgrade packages --- src/corePackages/Core.CodeGen/Core.CodeGen.csproj | 2 +- src/corePackages/Core.ConsoleUI/Core.ConsoleUI.csproj | 2 +- src/nArchGen/Application/Application.csproj | 3 +-- src/nArchGen/Application/ApplicationServiceRegistration.cs | 7 +++---- src/nArchGen/ConsoleUI/ConsoleUI.csproj | 6 +++--- 5 files changed, 9 insertions(+), 11 deletions(-) diff --git a/src/corePackages/Core.CodeGen/Core.CodeGen.csproj b/src/corePackages/Core.CodeGen/Core.CodeGen.csproj index c3d6b10..6d3fdfc 100644 --- a/src/corePackages/Core.CodeGen/Core.CodeGen.csproj +++ b/src/corePackages/Core.CodeGen/Core.CodeGen.csproj @@ -6,7 +6,7 @@ - + diff --git a/src/corePackages/Core.ConsoleUI/Core.ConsoleUI.csproj b/src/corePackages/Core.ConsoleUI/Core.ConsoleUI.csproj index 7b9232c..8b08df8 100644 --- a/src/corePackages/Core.ConsoleUI/Core.ConsoleUI.csproj +++ b/src/corePackages/Core.ConsoleUI/Core.ConsoleUI.csproj @@ -5,7 +5,7 @@ enable - + \ No newline at end of file diff --git a/src/nArchGen/Application/Application.csproj b/src/nArchGen/Application/Application.csproj index b6c6e7f..43bd42b 100644 --- a/src/nArchGen/Application/Application.csproj +++ b/src/nArchGen/Application/Application.csproj @@ -5,8 +5,7 @@ enable - - + diff --git a/src/nArchGen/Application/ApplicationServiceRegistration.cs b/src/nArchGen/Application/ApplicationServiceRegistration.cs index b11e545..c1f43aa 100644 --- a/src/nArchGen/Application/ApplicationServiceRegistration.cs +++ b/src/nArchGen/Application/ApplicationServiceRegistration.cs @@ -1,9 +1,8 @@ -using System.Reflection; -using Application.Features.Generate.Rules; +using Application.Features.Generate.Rules; using Core.CodeGen.TemplateEngine; using Core.CodeGen.TemplateEngine.Scriban; -using MediatR; using Microsoft.Extensions.DependencyInjection; +using System.Reflection; namespace Application; @@ -11,7 +10,7 @@ public static class ApplicationServiceRegistration { public static IServiceCollection AddApplicationServices(this IServiceCollection services) { - services.AddMediatR(Assembly.GetExecutingAssembly()); + services.AddMediatR(config => config.RegisterServicesFromAssembly(Assembly.GetExecutingAssembly())); services.AddSingleton(); services.AddSingleton(); diff --git a/src/nArchGen/ConsoleUI/ConsoleUI.csproj b/src/nArchGen/ConsoleUI/ConsoleUI.csproj index 6d6b2f0..8672c35 100644 --- a/src/nArchGen/ConsoleUI/ConsoleUI.csproj +++ b/src/nArchGen/ConsoleUI/ConsoleUI.csproj @@ -7,9 +7,9 @@ nArchGen - - - + + +