//private readonly string orgCode; public EncryptionController(IHttpContextAccessor contextAccessor, IEncryptionRepository encryptionRepository, IDistributedCache distributedCache) { //orgCode = contextAccessor.HttpContext.User.Claims.FirstOrDefault(x => x.Type == EncryptionConstant.OrgCode).Value; //encryptionRepository.LoadContext(orgCode, distributedCache); this.encryptionRepository = encryptionRepository; }
public EncryptionJob(IEncryptionRepository encryptionRepository) { this.encryptionRepository = encryptionRepository; }