C# Class Kentico.ADImportService.RestProvider

Basic REST requests provider.
Afficher le fichier Open project: Kentico/ADImportService Class Usage Examples

Méthodes publiques

Méthode Description
RestProvider ( Encoding encoding, string userName, string password, string certificatePath = null ) : System

Default constructor for REST provider.

Private Methods

Méthode Description
MakeRequest ( string target, System.Net.HttpVerb method = HttpVerb.Get, string>.Dictionary parameters = null, string data = null ) : string
ValidateCertificate ( object sender, X509Certificate certificate, X509Chain certificateChain, SslPolicyErrors policyErrors ) : bool

Validate certificate.

Method Details

RestProvider() public méthode

Default constructor for REST provider.
public RestProvider ( Encoding encoding, string userName, string password, string certificatePath = null ) : System
encoding System.Text.Encoding Data encoding.
userName string User name to authorize request with.
password string Password to authorize request with.
certificatePath string Path to the ceritification file.
Résultat System