C# Class HarvestApi.Service.Request.AbstractService

Inheritance: IServiceCommand
Datei anzeigen Open project: s1m0nj/Harvest-Service-for-.Net

Public Methods

Method Description
Exectue ( string xmlContent = "" ) : string
Validator ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool

Protected Methods

Method Description
AbstractService ( HarvestConnection harvestConnection, string endpoint ) : System

Private Methods

Method Description
ExecuteRequest ( ) : string
ExecuteRequestAndRetryIfServiceUnavailable ( ) : string
HarvestEncode ( ) : object[]

UrlEncode seems to encode the url too much so we just use a manual encoder to their specific requirements

RequestFactory ( string endpointUri ) : HttpWebRequest

Method Details

AbstractService() protected method

protected AbstractService ( HarvestConnection harvestConnection, string endpoint ) : System
harvestConnection HarvestConnection
endpoint string
return System

Exectue() public method

public Exectue ( string xmlContent = "" ) : string
xmlContent string
return string

Validator() public static method

public static Validator ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool
sender object
certificate System.Security.Cryptography.X509Certificates.X509Certificate
chain System.Security.Cryptography.X509Certificates.X509Chain
sslPolicyErrors SslPolicyErrors
return bool