public Initializer(UserCredentials credentials)
            {
                ClientFactory =
                    new TmHttpClientFactory(new DelegatingHandler[]
                {
                    new UnsuccessResponseDelegatingHandler(),
                    new AuthHeaderDelegatingHandler(credentials),
                    new RefreshTokenDelegatingHandler(credentials)
                });
                Configuration = credentials.ApiConfig;

                Credentials = credentials;
            }
Пример #2
0
 public FlowInitializer(IServiceConfigurationFactory configurationFactory,
                        ITmHttpClientFactory clientFactory)
 {
     ConfigurationFactory = configurationFactory;
     ClientFactory        = clientFactory;
 }