public virtual ValidateLrfcResponse ValidateLrfc(string Lrfc) { ValidateLrfcResponseHandler handler = new ValidateLrfcResponseHandler(); try { var request = this.RequestValidateLrfc(Lrfc); return(handler.GetResponse(request)); } catch (Exception ex) { return(handler.HandleException(ex)); } }
public virtual ValidateLrfcResponse ValidateLrfc(string Lrfc) { ValidateLrfcResponseHandler handler = new ValidateLrfcResponseHandler(); try { var headers = GetHeaders(); var content = RequestValidarLrfc(Lrfc); var proxy = Helpers.RequestHelper.ProxySettings(Proxy, ProxyPort); return(handler.GetResponse(Url, headers, string.Format("lrfc/{0}", Lrfc), proxy )); } catch (Exception ex) { return(handler.HandleException(ex)); } }
public virtual async Task <ValidateLrfcResponse> ValidateLrfcAsync(string Lrfc) { ValidateLrfcResponseHandler handler = new ValidateLrfcResponseHandler(); try { var headers = await GetHeadersAsync(); var content = RequestValidarLrfcAsync(Lrfc); var proxy = Helpers.RequestHelper.ProxySettings(this.Proxy, this.ProxyPort); return(await handler.GetResponseAsync(this.Url, headers, string.Format("lrfc/{0}", Lrfc), proxy )); } catch (Exception ex) { return(handler.HandleException(ex)); } }