e1f1a4b3cb
- 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
24 lines
668 B
C#
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;
|
|
}
|
|
}
|