public Initializer(UserCredentials credentials) { ClientFactory = new TmHttpClientFactory(new DelegatingHandler[] { new UnsuccessResponseDelegatingHandler(), new AuthHeaderDelegatingHandler(credentials), new RefreshTokenDelegatingHandler(credentials) }); Configuration = credentials.ApiConfig; Credentials = credentials; }
public FlowInitializer(IServiceConfigurationFactory configurationFactory, ITmHttpClientFactory clientFactory) { ConfigurationFactory = configurationFactory; ClientFactory = clientFactory; }