C# Class Kentico.ADImportService.RestProvider

Basic REST requests provider.
Exibir arquivo Open project: Kentico/ADImportService Class Usage Examples

Public Methods

Method Description
RestProvider ( Encoding encoding, string userName, string password, string certificatePath = null ) : System

Default constructor for REST provider.

Private Methods

Method 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 method

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.
return System