예제 #1
0
 public UserService(IUserRepository userRepository, IAddressService addressService,
                    IPasswordEncryption passwordEncryption)
 {
     _userRepository     = userRepository;
     _addressService     = addressService;
     _passwordEncryption = passwordEncryption;
 }
예제 #2
0
 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));
 }
예제 #3
0
 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);
 }
예제 #5
0
 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;
 }
예제 #6
0
        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));
        }
예제 #7
0
 public HustlersContext(IConfiguration configuration, IPasswordEncryption passwordEncryption)
 {
     this.configuration      = configuration;
     this.passwordEncryption = passwordEncryption;
 }
예제 #8
0
 public RegistrationService(IRegistrationRepository registrationRepository, IPasswordEncryption passwordEncryption)
 {
     this.registrationRepository = registrationRepository;
     this.passwordEncryption     = passwordEncryption;
 }
예제 #9
0
 public AppUow(IPasswordEncryption passwordEncryption)
 {
     PasswordEncryption = passwordEncryption;
 }
예제 #10
0
 public LoginService(ILoginRepository loginRepository, IAuthorizationService authorizationService, IPasswordEncryption passwordEncryption)
 {
     this.loginRepository      = loginRepository;
     this.authorizationService = authorizationService;
     this.passwordEncryption   = passwordEncryption;
 }
예제 #11
0
 public void setPasswordEncryption(IPasswordEncryption _passwordEncryption)
 {
     PasswordEncryption = _passwordEncryption;
 }