/// <summary> /// Creating data controller /// </summary> /// <param name="postDataService">Post data to the database service</param> /// <param name="getDataService">Get data from the database service</param> public DataController(IPostDataService postDataService, IGetDataService getDataService, IUnitOfWork unitOfWork, IDecryptService decryptService) { if (postDataService == null) { throw new ArgumentNullException(nameof(postDataService), " was null."); } if (getDataService == null) { throw new ArgumentNullException(nameof(getDataService), " was null."); } if (unitOfWork == null) { throw new ArgumentNullException(nameof(unitOfWork), " was null."); } if (decryptService == null) { throw new ArgumentNullException(nameof(decryptService), " was null."); } _postDataService = postDataService; _getDataService = getDataService; _unitOfWork = unitOfWork; _decryptService = decryptService; }
public Job(IHttpRequestService httpRequestService, IDecryptService decryptService, ISecurityService securityService, IFileService fileService) { _httpRequestService = httpRequestService; _decryptService = decryptService; _securityService = securityService; _fileService = fileService; }
/// <summary> /// Creating post service /// </summary> /// <param name="unitOfWork">Unit of work all repositories</param> /// <param name="encryptService">Service which encrypt data in block</param> public PostDataService(IUnitOfWork unitOfWork, IDecryptService dencryptService) { if (unitOfWork == null) { throw new ArgumentNullException(nameof(unitOfWork), " was null."); } if (dencryptService == null) { throw new ArgumentNullException(nameof(dencryptService), " was null."); } _unitOfWork = unitOfWork; _decryptService = dencryptService; }
public AccountController( UserManager <ApplicationUser> userManager, IJwtService jwtService, IGenerateResreshTokenService generateResreshTokenService, IDecryptService decryptService, IEncryptService encryptService, ISendEmailService sendEmailService, RoleManager <ApplicationRole> roleManager) { this.userManager = userManager; this.jwtService = jwtService; this.generateResreshTokenService = generateResreshTokenService; this.decryptService = decryptService; this.encryptService = encryptService; this.sendEmailService = sendEmailService; this.roleManager = roleManager; }
public void Setup() { IServiceCollection services = new ServiceCollection(); services.AddDecryptService(options => { options.IdentityPem = File.ReadAllText("resources/keys/id-4.pem"); options.IdentityPoint = "AmUppru04ghsI/FvbvV59eoX3lCUWlMAZKu1pPdlvixch5avV+aFwQg="; options.PseudoKeyPem = File.ReadAllText("resources/keys/pd-4.pem"); options.PseudoClosingKeyPem = File.ReadAllText("resources/keys/pc-4.pem"); options.PseudonymPoint = "A9GtKDUn++nl2NWtN4F/2id1gmBhxn4I6Qr9BfeMN+fjNuXGvE79qHc="; } ); var serviceProvider = services.BuildServiceProvider(); decryptService = serviceProvider.GetService <IDecryptService>(); }
/// <summary> /// Creating file controller /// </summary> /// <param name="fileService">File service</param> public FilesController(IFileService fileService, IUnitOfWork unitOfWork, IDecryptService decryptService) { if (fileService == null) { throw new ArgumentNullException(nameof(fileService), " was null."); } if (unitOfWork == null) { throw new ArgumentNullException(nameof(unitOfWork), " was null."); } if (decryptService == null) { throw new ArgumentNullException(nameof(decryptService), " was null."); } _fileService = fileService; _unitOfWork = unitOfWork; _decryptService = decryptService; }
public ConfigureOidcOptions(IDecryptService decrypt) { this.decrypt = decrypt; }