Example #1
0
 /// <inheritdoc />
 public UserUnblockedConsumer(
     IUserRepository userRepository,
     IUserServiceClient serviceClient)
 {
     _userRepository = userRepository;
     _serviceClient  = serviceClient;
 }
 public AuthenticationService(IUserServiceClient serviceClient,
                              IJwtTokenHandler jwtTokenHandler, JwtTokenSettings jwtTokenSettings)
 {
     _serviceClient    = serviceClient;
     _jwtTokenHandler  = jwtTokenHandler;
     _jwtTokenSettings = jwtTokenSettings;
 }
Example #3
0
 /// <summary>
 /// Constructor
 /// </summary>
 public UsersController(
     IUserServiceClient userService,
     IStorageServiceClient storageService)
 {
     _userService    = userService;
     _storageService = storageService;
 }
Example #4
0
 /// <inheritdoc />
 public UserActivatedConsumer(
     IUserRepository userRepository,
     IUserServiceClient serviceClient)
 {
     _userRepository = userRepository;
     _serviceClient  = serviceClient;
 }
        public CreateAnswerCommandValidator(IUserServiceClient client)
        {
            _client = client;

            RuleFor(x => x.TextTranslated).NotEmpty().NotNull();
            RuleFor(x => x.RequestId).NotEmpty().NotNull();
            RuleFor(x => x.UserId).MustAsync(IdExists).WithMessage("ID must be registered");
        }
Example #6
0
 /// <summary>
 /// Constructor
 /// </summary>
 public AccountController(
     IJwtTokenService jwtHandler,
     IUserServiceClient userService,
     IStorageServiceClient storageService)
 {
     _jwtHandler     = jwtHandler;
     _userService    = userService;
     _storageService = storageService;
 }
Example #7
0
 public WorkplaceService(
     [FromServices] IWorkplaceRepository workplaceRepository,
     [FromServices] IMapper automapper,
     [FromServices] IUserServiceClient userServiceClient)
 {
     this.workplaceRepository = workplaceRepository;
     this.automapper          = automapper;
     this.userServiceClient   = userServiceClient;
 }
Example #8
0
 public CreateVisitorHandler(IVmsLogger <CreateVisitorHandler> logger, IVisitorsRepository visitorsRepository, IUserServiceClient userServiceClient, ISiteServiceClient siteServiceClient, IVisitorAggregate visitorAggregate, IServiceBusMessagePublisher messagePublisher, IVisitorFormValidatorService validatorService)
 {
     _logger             = logger;
     _visitorsRepository = visitorsRepository;
     _userServiceClient  = userServiceClient;
     _siteServiceClient  = siteServiceClient;
     _visitorAggregate   = visitorAggregate;
     _messagePublisher   = messagePublisher;
     _validatorService   = validatorService;
 }
Example #9
0
 public SignedUpHandler(IHandler handler,
                        IUserNotificationSettingsService settingsService,
                        IUserServiceClient userServiceClient,
                        GeneralSettings generalSettings)
 {
     _handler           = handler;
     _settingsService   = settingsService;
     _userServiceClient = userServiceClient;
     _generalSettings   = generalSettings;
 }
 public UserProvider(IProviderClient providerClient,
                     IUserRepository userRepository,
                     IUserSessionRepository userSessionRepository,
                     IUserServiceClient userServiceClient)
 {
     _providerClient        = providerClient;
     _userRepository        = userRepository;
     _userSessionRepository = userSessionRepository;
     _userServiceClient     = userServiceClient;
 }
Example #11
0
 public SignedInHandler(IHandler handler,
                        IUserRepository repository,
                        IUserServiceClient userServiceClient,
                        IAccountStateService accountStateService,
                        IUserCache cache)
 {
     _handler             = handler;
     _repository          = repository;
     _userServiceClient   = userServiceClient;
     _accountStateService = accountStateService;
     _cache = cache;
 }
 public CreateEmployeeHandler(
     IEmployeeRepository employeeRepository,
     IDateTimeProvider dateTimeProvider,
     ILogger <CreateEmployeeHandler> logger,
     IMessageBroker broker,
     IUserServiceClient userServiceClient
     )
 {
     _employeeRepository = employeeRepository;
     _dateTimeProvider   = dateTimeProvider;
     _logger             = logger;
     _broker             = broker;
     _userServiceClient  = userServiceClient;
 }
Example #13
0
        public VoteOnAnswerCommandValidator(IUserServiceClient client)
        {
            _client = client;

            RuleFor(x => x.UserId)
            .NotEmpty()
            .NotNull()
            .WithMessage("An UserID was not provided")
            .MustAsync(IdExists)
            .WithMessage("ID must be registered");

            RuleFor(x => x.AnswerId).NotNull().NotEmpty().WithMessage("An AnswerID was not provided");
            RuleFor(x => x.RequestId).NotNull().NotEmpty().WithMessage("An RequestId was not provided");
            RuleFor(x => x.Like).NotNull().NotEmpty().WithMessage("A like was not provided");
        }
 public UserClient(ISessionProvider sessionProvider, IUserServiceClient userServiceClient) : base(sessionProvider)
 {
     _userServiceClient = userServiceClient;
 }
Example #15
0
 public UsersController(IUserServiceClient client)
 {
     this.client = client.Client;
 }
 public HomeController(IUserServiceClient userClient)
 {
     this.UserClient = userClient;
 }
Example #17
0
 public AccountController()
 {
     _userClient = new UserServiceClient();
 }