Exemple #1
0
 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));
 }
Exemple #2
0
 public InfusionServiceUpdater(
     IOptions <InfusionServiceUpdaterOptions> options,
     ILog log,
     IHttpClientResolver httpClientResolver,
     IAccessTokenResolver accessTokenResolver
     )
 {
     this.options             = options;
     this.log                 = log;
     this.httpClientResolver  = httpClientResolver;
     this.accessTokenResolver = accessTokenResolver;
 }
Exemple #3
0
 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;
 }
Exemple #4
0
 public AuthenticatedHttpClientHandler(IAccessTokenResolver accessTokenResolver, HttpMessageHandler handler = null) : base(handler)
 {
     _accessTokenResolver = accessTokenResolver ?? throw new ArgumentNullException(nameof(accessTokenResolver));
 }
Exemple #5
0
        public AuthenticatedHttpClientHandler(IPasswordBasedConfiguration configuration)
        {
            var authenticationService = new AuthenticationService(configuration);

            _accessTokenResolver = new UserPasswordAccessTokenResolver(configuration.Username, configuration.Password, authenticationService);
        }
 public SomeService(IAccessTokenResolver accessTokenResolver)
 {
     _accessTokenResolver = accessTokenResolver;
 }