You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

31 lines
1.1 KiB

using Duende.IdentityServer;
using Duende.IdentityServer.Services;
using Easy.DDD.Application;
using Easy.DDD.Domain;
using Easy.DDD.Domain.Repositories;
using Easy.Result;
using Identity.Api.DDD.Domain.Entites;
using Identity.Api.DDD.Domain.Services;
using Microsoft.AspNetCore.Authentication;
namespace Identity.Api.DDD.Application;
public class IdentityUserAppService : ApiService
{
private IdentityUserDomainService IdentityUserDomainService { get; }
//private IRepository<IdentityUser> IdentityUserRepository { get; }
private IHttpContextAccessor Accessor { get; }
private HttpContext HttpContext { get; }
private IIdentityServerInteractionService Interaction { get; }
private IServerUrls ServerUrls { get; }
public IdentityUserAppService(IdentityUserDomainService identityUserDomainService, IHttpContextAccessor httpContextAccessor)
{
IdentityUserDomainService = identityUserDomainService;
//IdentityUserRepository = identityUserDomainService.IdentityUserRepository;
Accessor = httpContextAccessor;
HttpContext = httpContextAccessor.HttpContext;
}
}