Files
Nexus.Reader/src/NexusReader.Application/Mappings/MappingConfig.cs
T
mjasin e1f1a4b3cb refactor: complete web project consolidation and stabilize identity flow
- Finalized move from NexusReader.Web.New to NexusReader.Web
- Implemented robust ServerIdentityService with UserManager and SignInManager
- Updated UI components to handle authentication state synchronization via force reload
- Refined BookIngestionModal styling following Nexus Neon design system
- Resolved namespace conflicts and updated CI/CD/VS Code configurations
- Fixes #33
2026-05-11 20:42:57 +02:00

24 lines
668 B
C#

using Mapster;
using MapsterMapper;
using Microsoft.Extensions.DependencyInjection;
using NexusReader.Domain.Entities;
using NexusReader.Application.DTOs.User;
namespace NexusReader.Application.Mappings;
public static class MappingConfig
{
public static IServiceCollection AddMapsterConfiguration(this IServiceCollection services)
{
var config = TypeAdapterConfig.GlobalSettings;
config.NewConfig<NexusUser, UserProfileDto>();
// Roles are mapped manually in queries due to Identity structure
services.AddSingleton(config);
services.AddScoped<IMapper, ServiceMapper>();
return services;
}
}