示例#1
0
 public LoginViewModel(IUserRepository repository, IMainViewModel mainViewModel, IUserValidationService userValidationService)
 {
     Login                  = new DelegateCommand <object>(ExecuteLogin, CanExecuteLogin);
     _repository            = repository ?? throw new ArgumentNullException(nameof(repository));
     _mainViewModel         = mainViewModel ?? throw new ArgumentNullException(nameof(mainViewModel));
     _userValidationService = userValidationService ?? throw new ArgumentNullException(nameof(userValidationService));
 }
示例#2
0
 public UserWebService(IUserValidationService userValidationService, IUserService userService)
 {
     _userValidationService = userValidationService;
     _userService           = userService;
     _config = new Mapping.AutoMapperWeb().Configuration;
     mapper  = _config.CreateMapper();
 }
示例#3
0
 public CategoryController(ICategoryService categoryService, IProductService productService, IUserValidationService userValidationService, ILogger <ICategoryService> logger)
 {
     _categoryService       = categoryService;
     _productService        = productService;
     _userValidationService = userValidationService;
     _logger = new CustomLogger(logger);
 }
示例#4
0
 public UserController(IUserService userService, ILogger <UserController> logger, IOptions <AppSettings> options, IUserValidationService userValidationService)
 {
     _userService           = userService;
     _logger                = logger;
     _appSettings           = options.Value;
     _userValidationService = userValidationService;
 }
示例#5
0
 public Login(IUserValidationService service, ILogger logger)
 {
     _logger                         = logger;
     _validationService              = service;
     _validationService.CustomEvent +=
         new CustomEventHandler(HandleValidationEvent);
 }
示例#6
0
 public JwtController(ILogger <JwtController> logger, IUserValidationService uservalidationService, IOptions <AppSettings> options)
 {
     _logger = logger;
     _uservalidationService = uservalidationService;
     _appSettings           = options.Value;
     var testVal = _appSettings.SecretKey;
 }
 public CollectionController(IUserValidationService userValidationService, ICollectionService service, ILogger <ICategoryService> logger, IConfiguredProductService configuredProductService)
 {
     _collectionService        = service;
     _configuredProductService = configuredProductService;
     _logger = new CustomLogger(logger);
     _userValidationService = userValidationService;
 }
			public Login(IUserValidationService service, ILogger logger)
			{
				_logger = logger;
				_validationService = service;
				_validationService.CustomEvent +=
					new CustomEventHandler(HandleValidationEvent);
			}
示例#9
0
        public ObjectQuery(IMongoDatabase mapDatabase, IMapFactory mapFactory, IUserValidationService validation, string id)
        {
            objects = mapDatabase.GetCollection <BsonDocument>("objects");

            this.mapFactory = mapFactory;
            this.validation = validation;
            this.id         = id;
        }
 public MaterialController(IMaterialService materialService, ILogger <ICategoryService> logger,
                           IProductService productService, IUserValidationService userValidationService)
 {
     _materialService       = materialService;
     _productService        = productService;
     _userValidationService = userValidationService;
     _logger = new CustomLogger(logger);
 }
 public CommandFactory(IUserValidationService userValidationService,
                       IMapObjectsRepository mapObjectsRepository,
                       IMapFactory mapFactory)
 {
     this.userValidationService = userValidationService;
     this.mapObjectsRepository  = mapObjectsRepository;
     this.mapFactory            = mapFactory;
 }
示例#12
0
 public ConfiguredProductController(IUserValidationService userValidationService, IConfiguredProductService configuredProductService, ILogger <ICategoryService> logger, IProductService productService, IMaterialService materialService)
 {
     _configuredProductService = configuredProductService;
     _productService           = productService;
     _materialService          = materialService;
     _logger = new CustomLogger(logger);
     _userValidationService = userValidationService;
 }
 public UpdateMapCommand(IUserValidationService userValidationService,
                         IMapObjectsRepository mapObjectsRepository,
                         TimeSpan elapsed)
 {
     this.userValidationService = userValidationService;
     this.mapObjectsRepository  = mapObjectsRepository;
     this.elapsed = elapsed;
 }
 public CreateStorageCommand(
     IEventStore eventStore,
     IUserValidationService userValidationService,
     string newStorageId)
 {
     this.eventStore            = eventStore;
     this.userValidationService = userValidationService;
     this.createStorageEvent    = CreateEvent(newStorageId);
 }
示例#15
0
 public UserService(IBaseUtilitiesProvider baseUtilitiesProvider,
                    IPasswordService passwordService,
                    IJwtSecurityTokenService jwtSecurityTokenService,
                    IUserValidationService userValidationService) : base(baseUtilitiesProvider)
 {
     this.passwordService         = passwordService;
     this.jwtSecurityTokenService = jwtSecurityTokenService;
     this.userValidationService   = userValidationService;
 }
示例#16
0
 public UserService(
     IUserValidationService userValidationService,
     IPasswordService passwordService,
     IAddUserProvider addUserProvider)
 {
     this.userValidationService = userValidationService;
     this.passwordService       = passwordService;
     this.addUserProvider       = addUserProvider;
 }
示例#17
0
 public UserService(
     IUserRepository userRepository,
     IMapper mapper,
     IUserValidationService userValidationService)
 {
     _userRepository        = userRepository;
     _mapper                = mapper;
     _userValidationService = userValidationService;
 }
 public UpdateObjectCommand(IUserValidationService userValidationService,
                            IMapObjectsRepository mapObjectsRepository,
                            MapObjectUpdateData updateData,
                            string id)
 {
     this.userValidationService = userValidationService;
     this.mapObjectsRepository  = mapObjectsRepository;
     this.updateData            = updateData;
     this.id = id;
 }
示例#19
0
 public GroupValidationService(
     IAuthorizedUserHelper authorizedUserHelper,
     IGroupUserRepository groupUserRepository,
     IUserValidationService userValidationService
     )
 {
     _groupUserRepository   = groupUserRepository;
     _authorizedUser        = authorizedUserHelper.GetAuthorizedUser();
     _userValidationService = userValidationService;
 }
示例#20
0
 public UserController(
     IUserValidationService userValidationService,
     IAuthenticationService authenticationService,
     IValidationService validationService,
     ILogService logService)
 {
     _userValidationService = userValidationService;
     _authenticationService = authenticationService;
     _validationService     = validationService;
     _logService            = logService;
 }
示例#21
0
 public UserService(
     UserManager <AllergoUser> userManager,
     IUserValidationService userValidationService,
     RoleManager <AllergoRole> roleManager,
     IDataService dataService)
 {
     _userManager           = userManager;
     _userValidationService = userValidationService;
     _roleManager           = roleManager;
     _dataService           = dataService;
 }
示例#22
0
 public InstanceService(
     IAuthenticationService authenticationService,
     IInstanceRepository instanceRepository,
     IApplicationSetting applicationSetting,
     IUserValidationService userValidationService)
 {
     this._instanceRepository    = instanceRepository;
     this._authenticationService = authenticationService;
     this._applicationSetting    = applicationSetting;
     this._userValidationService = userValidationService;
 }
示例#23
0
 public AddObjectCommand(IUserValidationService userValidationService,
                         IMapObjectsRepository mapObjectsRepository,
                         IMapFactory mapFactory,
                         MapObjectCreateData createData,
                         string id)
 {
     this.userValidationService = userValidationService;
     this.mapObjectsRepository  = mapObjectsRepository;
     this.mapFactory            = mapFactory;
     this.id         = id;
     this.createData = createData;
 }
 public CommandFactory(
     IStorageStore storageStore,
     IEventStore eventStore,
     ITransactionValidationService transactionValidationService,
     ISnapshot snapshot,
     IUserValidationService userValidationService)
 {
     this.storageStore = storageStore;
     this.eventStore   = eventStore;
     this.transactionValidationService = transactionValidationService;
     this.snapshot = snapshot;
     this.userValidationService = userValidationService;
 }
示例#25
0
 public SignUpController(
     IUserValidationService userValidationService,
     IAuthenticationService authenticationService,
     IApplicationManagerService applicationManagerService,
     IValidationService validationService,
     ILogService logService)
 {
     _userValidationService     = userValidationService;
     _authenticationService     = authenticationService;
     _applicationManagerService = applicationManagerService;
     _validationService         = validationService;
     _logService = logService;
 }
 public ChatValidationService(
     IAuthorizedUserHelper authorizedUserHelper,
     IChatUserRepository chatUserRepository,
     IChatRepository chatRepository,
     IGroupValidationService groupValidationService,
     IUserValidationService userValidationService
     )
 {
     _chatUserRepository     = chatUserRepository;
     _groupValidationService = groupValidationService;
     _chatRepository         = chatRepository;
     _userValidationService  = userValidationService;
     _authorizedUser         = authorizedUserHelper.GetAuthorizedUser();
 }
示例#27
0
 public AuthService(
     IUserService userService,
     IUserRepository userRepository,
     IMapper mapper,
     IAuthValidationService authValidationService,
     IUserValidationService userValidationService,
     IConfiguration configuration)
 {
     _userService            = userService;
     _userRepository         = userRepository;
     _mapper                 = mapper;
     _authValidationServices = authValidationService;
     _userValidationService  = userValidationService;
     _configuration          = configuration;
 }
示例#28
0
        public JsRegisterUserRequestValidator(IUserValidationService userValidationService)
        {
            RuleFor(x => x.FormalName)
            .MaximumLength(255);

            RuleFor(x => x.PreferredName)
            .NotEmpty()
            .Length(1, 255);

            RuleFor(x => x.Email)
            .EmailAddress(EmailValidationMode.AspNetCoreCompatible)
            .MustAsync(userValidationService.IsEmailUnique)
            .WithMessage("Email already taken");

            RuleFor(x => x.UserName)
            .Length(2, 30)
            .Matches("[A-Za-z0-9._]");

            RuleFor(x => x.Password).Password(6);
        }
示例#29
0
 public GamerManager(IUserValidationService userValidationService)
 {
     _userValidationService = userValidationService;
 }
示例#30
0
 public RegisterValidationFilter(IUserValidationService userValidationService)
 {
     _userValidationService = userValidationService;
 }
 public LoginValidationFilter(IUserValidationService userValidationService)
 {
     _userValidationService = userValidationService;
 }
示例#32
0
			public Login(IUserValidationService service)
				: this(service, null)
			{
			}
示例#33
0
文件: Post.cs 项目: rssvihla/OldIdeas
 public Post(IUserValidationService service)
 {
     _service = service;
 }