public HsvIntegrationService( IOptions <HsvIntegrationServiceOptions> options, ILog log, IHttpClientResolver httpClientResolver, IAccessTokenResolver accessTokenResolver) { this.options = options ?? throw new ArgumentNullException(nameof(options)); this.log = log ?? throw new ArgumentNullException(nameof(log)); this.httpClientResolver = httpClientResolver ?? throw new ArgumentNullException(nameof(httpClientResolver)); this.accessTokenResolver = accessTokenResolver ?? throw new ArgumentNullException(nameof(accessTokenResolver)); }
public InfusionServiceUpdater( IOptions <InfusionServiceUpdaterOptions> options, ILog log, IHttpClientResolver httpClientResolver, IAccessTokenResolver accessTokenResolver ) { this.options = options; this.log = log; this.httpClientResolver = httpClientResolver; this.accessTokenResolver = accessTokenResolver; }
public SilentProvisioningService( IOptions <SilentProvisioningServiceOptions> options, ILog log, IContext context, IEntityEmitter <Principal> emitter, IEntityLinkEmitter <Principal, Role> linkEmitter, IAccessTokenResolver accessTokenResolver ) { this.options = options; this.log = log; this.context = context; this.emitter = emitter; this.linkEmitter = linkEmitter; this.accessTokenResolver = accessTokenResolver; }
public AuthenticatedHttpClientHandler(IAccessTokenResolver accessTokenResolver, HttpMessageHandler handler = null) : base(handler) { _accessTokenResolver = accessTokenResolver ?? throw new ArgumentNullException(nameof(accessTokenResolver)); }
public AuthenticatedHttpClientHandler(IPasswordBasedConfiguration configuration) { var authenticationService = new AuthenticationService(configuration); _accessTokenResolver = new UserPasswordAccessTokenResolver(configuration.Username, configuration.Password, authenticationService); }
public SomeService(IAccessTokenResolver accessTokenResolver) { _accessTokenResolver = accessTokenResolver; }