// -- methods public ServiceBase Setup(HttpClient client, HttpEndpoint endpoint) { try { _client = client; _endpoint = endpoint; _client.BaseAddress = new Uri(_endpoint.BaseAddress); } catch (Exception ex) { throw new ServiceException($"ServiceBase constructor failed: {ex.Message}", ex); } return(this); }
/// <summary> /// /// </summary> /// <param name="client"></param> /// <param name="endpoint"></param> public ServiceBase(HttpClient client, HttpEndpoint endpoint) : this() { Setup(client, endpoint); }