示例#1
0
 public Client(string authorizationHeader, IConfigProvider configProvider, ClientConfiguration.ClientAdapter clientadapter = ClientConfiguration.ClientAdapter.Proxy)
 {
     _configProvider = configProvider;
     _client         = ClientAdapterFactory.GetInstance <T>(authorizationHeader, configProvider, clientadapter);
 }
示例#2
0
 public Client(string authorizationHeader, IValidator <T> validator,
               ClientConfiguration.ClientAdapter clientadapter = ClientConfiguration.ClientAdapter.Proxy)
 {
     _client         = ClientAdapterFactory.GetInstance <T>(authorizationHeader, validator, clientadapter);
     _configProvider = null;
 }