Updated configuration

This commit is contained in:
Veljko Tosic
2026-02-14 18:47:50 +01:00
parent c5b08de0a2
commit 888db766a3
3 changed files with 16 additions and 1 deletions

View File

@@ -1,9 +1,11 @@
using AipsCore.Application.Abstract.UserContext;
using AipsCore.Domain.Abstract;
using AipsCore.Domain.Models.Shape.External;
using AipsCore.Domain.Models.User.External;
using AipsCore.Domain.Models.Whiteboard.External;
using AipsCore.Domain.Models.WhiteboardMembership.External;
using AipsCore.Infrastructure.DI.Configuration;
using AipsCore.Infrastructure.Persistence.Authentication.RefreshToken;
using AipsCore.Infrastructure.Persistence.Db;
using AipsCore.Infrastructure.Persistence.Shape;
using AipsCore.Infrastructure.Persistence.User;
@@ -28,10 +30,13 @@ public static class PersistenceRegistrationExtensions
});
services.AddTransient<IUnitOfWork, EfUnitOfWork>();
services.AddTransient<IUserRepository, UserRepository>();
services.AddTransient<IWhiteboardRepository, WhiteboardRepository>();
services.AddTransient<IWhiteboardMembershipRepository, WhiteboardMembershipRepository>();
services.AddTransient<IShapeRepository, ShapeRepository>();
services.AddTransient<IRefreshTokenRepository, RefreshTokenRepository>();
return services;
}