public MaxMindProvider(ILogger logger, ICustomFileProvider fileProvider, GeoLocationSettings geoLocationSettings) { _logger = logger; _fileProvider = fileProvider; _geoLocationSettings = geoLocationSettings; }
public PositionStackHttpClient( ILogger <PositionStackHttpClient> logger, IMapper mapper, IHttpClientFactory httpClientFactory, IOptions <GeoLocationSettings> locationOptions) { _logger = logger; _mapper = mapper; _httpClient = httpClientFactory.CreateClient(nameof(PositionStackHttpClient)); _locationSettings = locationOptions.Value; }
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; }
public MaxMindProvider(ILogger logger, GeoLocationSettings geoLocationSettings) { _logger = logger; _geoLocationSettings = geoLocationSettings; }