public static NetHttpClientBuilder Builder(NetHttpClientBuilder httpClientRestBuilder = null) { if (httpClientRestBuilder != null) { return(httpClientRestBuilder); } return(new NetHttpClientBuilder()); }
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; }
public NetHttpClient(NetHttpClientBuilder builder) { Init(builder); ConfigureHttpClient(); }