/// <summary> /// Gets instance of <see cref="HttpRequestHelper"/> that takes base URL /// </summary> /// <returns></returns> public static HttpRequestHelper Default() { return(HttpRequestHelper.FromUrl(ConfigurationReader.GetValue("ASN_BaseURL"))); }
/// <summary> /// Method that gets the response for a request object provided. /// </summary> /// <param name="url"> /// The URI of the service. /// </param> /// <param name="request"> /// The request object. /// </param> /// <typeparam name="TRequest"> /// </typeparam> /// <returns> /// The <see cref="HttpResponseMessage"/>. /// </returns> public static HttpResponseMessage GetResponse <TRequest>(string url, TRequest request) where TRequest : class { var response = HttpRequestHelper.SendRequest(url, HttpRequestHelper.RequestMethod.Post, request); return(response); }