C# Class HarvestApi.Service.Request.AbstractService

Inheritance: IServiceCommand
Afficher le fichier Open project: s1m0nj/Harvest-Service-for-.Net

Méthodes publiques

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

Méthodes protégées

Méthode Description
AbstractService ( HarvestConnection harvestConnection, string endpoint ) : System

Private Methods

Méthode 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 méthode

protected AbstractService ( HarvestConnection harvestConnection, string endpoint ) : System
harvestConnection HarvestConnection
endpoint string
Résultat System

Exectue() public méthode

public Exectue ( string xmlContent = "" ) : string
xmlContent string
Résultat string

Validator() public static méthode

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
Résultat bool