Fixes and mapping
This commit is contained in:
parent
fc7175c2f7
commit
ba965e8266
10 changed files with 449 additions and 284 deletions
|
|
@ -3,6 +3,7 @@ using ImageCatalog;
|
|||
using ImageCatalog_2.Services;
|
||||
using MaddoShared;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using AutoMapper;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Logging.Abstractions;
|
||||
using Microsoft.Extensions.Logging.Console;
|
||||
|
|
@ -79,6 +80,9 @@ static class Program
|
|||
|
||||
private static void ConfigureServices(ServiceCollection services)
|
||||
{
|
||||
// Register AutoMapper (new AddAutoMapper overload — provide config and marker types)
|
||||
services.AddAutoMapper(cfg => { }, typeof(Program));
|
||||
|
||||
// Register your services here
|
||||
services.AddTransient<ITestService, TestService>();
|
||||
services.AddTransient<ISettingsService, SettingsService>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue