Fix IoC
This commit is contained in:
@@ -6,6 +6,7 @@ using skydiveLogs_api.DomainBusiness.Interfaces;
|
||||
using skydiveLogs_api.DomainService.Repositories;
|
||||
using skydiveLogs_api.Infrastructure;
|
||||
using skydiveLogs_api.Infrastructure.Interfaces;
|
||||
using System.Security.Claims;
|
||||
|
||||
namespace skydiveLogs_api.Ioc
|
||||
{
|
||||
@@ -38,7 +39,7 @@ namespace skydiveLogs_api.Ioc
|
||||
|
||||
_services.AddSingleton<ICacheService, CacheService>();
|
||||
_services.AddScoped<IIdentityService, IdentityService>();
|
||||
_services.AddScoped(s => s.GetService<IHttpContextAccessor>()?.HttpContext.User);
|
||||
_services.AddScoped<ClaimsPrincipal>(s => s.GetService<IHttpContextAccessor>()?.HttpContext.User);
|
||||
|
||||
_services.AddScoped<IAircraftRepository, AircraftRepository>();
|
||||
_services.AddScoped<IDropZoneRepository, DropZoneRepository>();
|
||||
|
||||
Reference in New Issue
Block a user