示例#1
0
 internal SessionFactory(
     Func <HttpClient> httpClientFactory,
     IEnumerable <ModelConfiguration> modelConfigurations,
     JsonSerializerSettings jsonSettings,
     HttpRequestModifier httpRequestModifier,
     BundledHttpResponseListener httpResponseListener)
 {
     HttpClientFactory    = httpClientFactory;
     ModelConfigurations  = modelConfigurations;
     JsonSettings         = jsonSettings;
     HttpRequestModifier  = httpRequestModifier;
     HttpResponseListener = httpResponseListener;
 }
示例#2
0
 public HttpRequestBuilder(HttpRequestModifier httpRequestModifier)
 {
     HttpRequestModifier = httpRequestModifier;
 }
示例#3
0
 public IRemoteConfigurator Use(HttpRequestModifier httpRequestModifier)
 {
     HttpRequestModifiers.Add(httpRequestModifier);
     return(this);
 }
示例#4
0
 internal void Configure(HttpRequestModifier httpRequestModifier)
 {
     HttpRequestModifier = httpRequestModifier;
 }