コード例 #1
0
 public MaxMindProvider(ILogger logger,
                        ICustomFileProvider fileProvider,
                        GeoLocationSettings geoLocationSettings)
 {
     _logger              = logger;
     _fileProvider        = fileProvider;
     _geoLocationSettings = geoLocationSettings;
 }
コード例 #2
0
 public PositionStackHttpClient(
     ILogger <PositionStackHttpClient> logger,
     IMapper mapper,
     IHttpClientFactory httpClientFactory,
     IOptions <GeoLocationSettings> locationOptions)
 {
     _logger           = logger;
     _mapper           = mapper;
     _httpClient       = httpClientFactory.CreateClient(nameof(PositionStackHttpClient));
     _locationSettings = locationOptions.Value;
 }
コード例 #3
0
 public AccountService(UserManager <User> userManager,
                       IHttpContextAccessor accessor,
                       IOptions <GeoLocationSettings> geoLocationSettings,
                       IOptions <JwtSettings> jwtSettings,
                       ILogger <BaseService> logger,
                       IMapper mapper,
                       IRepository <User> userRepository,
                       IRepository <LoginInfo> loginInfoRepository,
                       SignInManager <User> signInManager)
     : base(userManager, logger, mapper)
 {
     this.userRepository      = userRepository;
     this.signInManager       = signInManager;
     this.jwtSettings         = jwtSettings.Value;
     this.client              = new HttpClient();
     this.geoLocationSettings = geoLocationSettings.Value;
     this.loginInfoRepository = loginInfoRepository;
     this.accessor            = accessor;
 }
コード例 #4
0
 public MaxMindProvider(ILogger logger,
                        GeoLocationSettings geoLocationSettings)
 {
     _logger = logger;
     _geoLocationSettings = geoLocationSettings;
 }