Introduce ICurrentUserService and its implementation to access the current user's username. Inject this service into CreateCatalogHandler and UpdateCatalogHandler to set AddedWho and ChangedWho fields dynamically. Register the service and IHttpContextAccessor in DI, and enable authentication middleware. Update project and using statements accordingly.
28 lines
1.1 KiB
XML
28 lines
1.1 KiB
XML
<Project Sdk="Microsoft.NET.Sdk.Web">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net8.0</TargetFramework>
|
|
<Nullable>enable</Nullable>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="AutoMapper" Version="16.1.1" />
|
|
<PackageReference Include="DevExpress.AspNetCore.Dashboard" Version="25.2.3" />
|
|
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.22" />
|
|
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.22" />
|
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.22">
|
|
<PrivateAssets>all</PrivateAssets>
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
</PackageReference>
|
|
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.6.2" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\DbFirst.Application\DbFirst.Application.csproj" />
|
|
<ProjectReference Include="..\DbFirst.Domain\DbFirst.Domain.csproj" />
|
|
<ProjectReference Include="..\DbFirst.Infrastructure\DbFirst.Infrastructure.csproj" />
|
|
</ItemGroup>
|
|
|
|
</Project>
|