예제 #1
0
        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));
            }
        }
예제 #2
0
        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));
            }
        }
예제 #3
0
        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));
            }
        }