Пример #1
0
 public JwtAuthenticationHandler(
     IOptionsMonitor <AuthenticationSchemeOptions> options,
     ILoggerFactory loggerFactory,
     UrlEncoder encoder,
     ISystemClock clock,
     IJwtService jwtService,
     IJwtClaimValidator jwtClaimValidator) : base(options, loggerFactory, encoder, clock)
 {
     _JwtService        = jwtService ?? throw new ArgumentNullException(nameof(jwtService));
     _JwtClaimValidator = jwtClaimValidator ?? throw new ArgumentNullException(nameof(jwtClaimValidator));
 }
Пример #2
0
 public MessagesController(IDatingRepository datingRepository,
                           IMapper mapper,
                           IMessageRepository messageRepository,
                           IJwtClaimValidator jwtClaimValidator,
                           IUserRepository userRepository)
 {
     _datingRepository  = datingRepository;
     _mapper            = mapper;
     _messageRepository = messageRepository;
     _jwtClaimValidator = jwtClaimValidator;
     _userRepository    = userRepository;
 }