public ClientCredentialTokenService(IOptions <ServiceApiSettings> serviceApiSettings, IOptions <ClientSettings> clientSettings, IClientAccessTokenCache clientAccessTokenCache, HttpClient httpClient)
 {
     _serviceApiSettings     = serviceApiSettings.Value ?? throw new ArgumentNullException(nameof(serviceApiSettings));
     _clientSettings         = clientSettings.Value ?? throw new ArgumentNullException(nameof(clientSettings));
     _clientAccessTokenCache = clientAccessTokenCache ?? throw new ArgumentNullException(nameof(clientAccessTokenCache));
     _httpClient             = httpClient ?? throw new ArgumentNullException(nameof(httpClient));
 }
 public ClientCredentialTokenService(IOptions <ServiceApiSettings> serviceApiSettings, IOptions <ClientSettings> clientSettings, IClientAccessTokenCache clientAccessTokenCache, HttpClient httpClient)
 {
     _serviceApiSettings     = serviceApiSettings.Value;
     _clientSettings         = clientSettings.Value;
     _clientAccessTokenCache = clientAccessTokenCache;
     _httpClient             = httpClient;
 }
Example #3
0
 public IdentityService(HttpClient httpClient, IHttpContextAccessor httpContextAccessor, IOptions <ClientSettings> clientSettings, IOptions <ServiceApiSettings> serviceApiSettings)
 {
     _httpClient          = httpClient;
     _httpContextAccessor = httpContextAccessor;
     _clientSettings      = clientSettings.Value;
     _serviceApiSettings  = serviceApiSettings.Value;
 }
 public PhotoHelper(IOptions <ServiceApiSettings> serviceApiSettings)
 {
     _serviceApiSettings = serviceApiSettings.Value;
 }
 public PhotoHelper(IOptions <ServiceApiSettings> serviceApiSettings)
 {
     _serviceApiSettings = serviceApiSettings.Value ?? throw new ArgumentNullException(nameof(serviceApiSettings));
 }