Presentation 2

This commit is contained in:
2026-02-08 20:17:01 +01:00
parent 41793f00c1
commit 70a1cf1544
17 changed files with 681 additions and 113 deletions

View File

@@ -1,5 +1,8 @@
using AipsCore.Application.Abstract;
using AipsCore.Application.Abstract.Command;
using AipsCore.Application.Common.Dispatcher;
using AipsCore.Application.Models.User.Command.CreateUser;
using AipsCore.Domain.Models.User.ValueObjects;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
@@ -10,7 +13,7 @@ public static class AipsRegistrationExtensions
public static IServiceCollection AddAips(this IServiceCollection services, IConfiguration configuration)
{
services.AddHandlersFromAssembly(typeof(Dispatcher).Assembly);
services.AddSingleton<IDispatcher, Dispatcher>();
services.AddTransient<IDispatcher, Dispatcher>();
services.AddPersistence(configuration);