public UserService(IUserRepository userRepository, IAddressService addressService, IPasswordEncryption passwordEncryption) { _userRepository = userRepository; _addressService = addressService; _passwordEncryption = passwordEncryption; }
public UserRepository( IServiceProvider serviceProvider, DataRepositoryContext context, IPasswordEncryption passwordEncryption, CurrentClientApplication currentClientApplication, ILogger <UserRepository> logger, IDataEventHandlers eventHandlers = null) : base(serviceProvider, context, eventHandlers) { _passwordEncryption = passwordEncryption ?? throw new ArgumentNullException(nameof(passwordEncryption)); _currentClientApplication = currentClientApplication ?? throw new ArgumentNullException(nameof(currentClientApplication)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public BinarySerializer( IDataCompressor compressor, ILogger logger, IPasswordEncryption passwordEncryption, IPublicKeyEncryption publicKeyEncryption, IPublicKeyEncryption symmetricEncryption, IDataSerializer xmlSerializer) { this.compressor = compressor; this.logger = logger; this.passwordEncryption = passwordEncryption; this.publicKeyEncryption = publicKeyEncryption; this.symmetricEncryption = symmetricEncryption; this.xmlSerializer = xmlSerializer; }
public Display(IDisplayProps props, IPasswordEncryption encryption, IZipEncrypt zipper, IModelAdapter <EmailAccount> email, IModelAdapter <UserAccount> userAccount, IModelAdapter <PasswordTracker> pwTracker, ITextFileReadWriter readerWriter) : this() { _props = props; _pwTracker = pwTracker; _email = email; _userAccount = userAccount; _zipper = zipper; _encryptDecrypt = encryption; _readerWriter = readerWriter; _loginForm = new Login(_props, userAccount, _email); }
public BinaryParser( IDataCompressor compressor, IHashAlgorithm hashAlgorithm, ILogger logger, IPasswordEncryption passwordEncryption, IPublicKeyEncryption publicKeyEncryption, IPublicKeyEncryption publicKeySymmetricEncryption, IDataParser xmlParser) { this.compressor = compressor; this.hashAlgorithm = hashAlgorithm; this.logger = logger; this.passwordEncryption = passwordEncryption; this.publicKeyEncryption = publicKeyEncryption; this.publicKeySymmetricEncryption = publicKeySymmetricEncryption; this.xmlParser = xmlParser; }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); NinjectConfig.CreateKernel(); var kernel = NinjectConfig.Kernel; IPasswordEncryption encryption = kernel.Get <IPasswordEncryption>(); IZipEncrypt zipper = kernel.Get <IZipEncrypt>(); IModelAdapter <EmailAccount> email = kernel.Get <IModelAdapter <EmailAccount> >(); IModelAdapter <UserAccount> userAccount = kernel.Get <IModelAdapter <UserAccount> >(); IModelAdapter <PasswordTracker> pwTracker = kernel.Get <IModelAdapter <PasswordTracker> >(); ITextFileReadWriter reader = kernel.Get <ITextFileReadWriter>(); IDisplayProps props = kernel.Get <IDisplayProps>(); ISubscriberTracker tracker = kernel.Get <ISubscriberTracker>(); tracker.Subscribe(email); tracker.Subscribe(pwTracker); Application.Run(new Display(props, encryption, zipper, email, userAccount, pwTracker, reader)); }
public HustlersContext(IConfiguration configuration, IPasswordEncryption passwordEncryption) { this.configuration = configuration; this.passwordEncryption = passwordEncryption; }
public RegistrationService(IRegistrationRepository registrationRepository, IPasswordEncryption passwordEncryption) { this.registrationRepository = registrationRepository; this.passwordEncryption = passwordEncryption; }
public AppUow(IPasswordEncryption passwordEncryption) { PasswordEncryption = passwordEncryption; }
public LoginService(ILoginRepository loginRepository, IAuthorizationService authorizationService, IPasswordEncryption passwordEncryption) { this.loginRepository = loginRepository; this.authorizationService = authorizationService; this.passwordEncryption = passwordEncryption; }
public void setPasswordEncryption(IPasswordEncryption _passwordEncryption) { PasswordEncryption = _passwordEncryption; }