internal override InfoCsdResponse InfoCsd(string certificateNumber) { InfoCsdResponseHandler handler = new InfoCsdResponseHandler(); try { new Validation(Url, User, Password, Token).ValidateHeaderParameters(); HttpWebRequest request = this.RequestInfoCsd(certificateNumber); return(handler.GetResponse(request)); } catch (Exception e) { return(handler.HandleException(e)); } }
internal override InfoCsdResponse ActiveCsd(string rfc, string type) { InfoCsdResponseHandler handler = new InfoCsdResponseHandler(); try { new Validation(Url, User, Password, Token).ValidateHeaderParameters(); HttpWebRequest request = this.RequestActiveCsd(rfc, type); return(handler.GetResponse(request)); } catch (Exception e) { return(handler.HandleException(e)); } }
internal override InfoCsdResponse ActiveCsd(string rfc, string type) { InfoCsdResponseHandler handler = new InfoCsdResponseHandler(); try { new Validation(Url, User, Password, Token).ValidateHeaderParameters(); var headers = GetHeaders(); var proxy = RequestHelper.ProxySettings(Proxy, ProxyPort); return(handler.GetResponse(Url, headers, "certificates/rfc/" + rfc + "/" + type, proxy)); } catch (Exception e) { return(handler.HandleException(e)); } }
internal override InfoCsdResponse InfoCsd(string certificateNumber) { InfoCsdResponseHandler handler = new InfoCsdResponseHandler(); try { new Validation(Url, User, Password, Token).ValidateHeaderParameters(); var headers = GetHeaders(); var proxy = Helpers.RequestHelper.ProxySettings(this.Proxy, this.ProxyPort); return(handler.GetResponse(this.Url, headers, "certificates/" + certificateNumber, proxy)); } catch (Exception e) { return(handler.HandleException(e)); } }