public AuthController(IUsosService usosService, IJWTAuthenticationService jwtService, IAsyncRepository <User> userRepository, IOptions <UsosServiceOptions> usosOptions, IOptions <ApplicationOptions> appOptions, IMapper mapper, IThesisService thesisService) { _usosService = usosService; _jwtService = jwtService; _userRepository = userRepository; _usosOptions = usosOptions.Value; _appOptions = appOptions.Value; _mapper = mapper; _thesisService = thesisService; }
public UsosService(IOptions <UsosServiceOptions> options, IOAuthService oauthService, HttpClient client, ILogger <UsosService> logger, IAsyncRepository <Settings> settingsRepository, IUserContext userContext) { _logger = logger; _options = options.Value; _client = client; _oauthService = oauthService; _settingsRepository = settingsRepository; _userContext = userContext; _client.BaseAddress = new Uri(_options.BaseApiAddress); _client.DefaultRequestHeaders.CacheControl = new CacheControlHeaderValue { NoCache = true }; }