コード例 #1
0
 public static NetHttpClientBuilder Builder(NetHttpClientBuilder httpClientRestBuilder = null)
 {
     if (httpClientRestBuilder != null)
     {
         return(httpClientRestBuilder);
     }
     return(new NetHttpClientBuilder());
 }
コード例 #2
0
 private void Init(NetHttpClientBuilder builder)
 {
     BaseAddress = builder._baseAddress;
     RequestUri  = builder._requestUri;
     FullUrl     = builder._fullUrl;
     HttpVerb    = builder._httpVerb;
     payload     = builder._payload;
     Timeout     = builder._timeout;
     OnResponse  = builder._onResponseEvent;
     OnFailure   = builder._onFailureEvent;
     Handler     = builder._handler;
 }
コード例 #3
0
 public NetHttpClient(NetHttpClientBuilder builder)
 {
     Init(builder);
     ConfigureHttpClient();
 }