C# Класс org.GraphDefined.Vanaheimr.Hermod.SOAP.AJSONClient

An abstract base class for all HTTP/JSON clients.
Наследование: AHTTPClient
Показать файл Открыть проект

Открытые методы

Метод Описание
AJSONClient ( String ClientId, String Hostname, IPPort RemotePort, RemoteCertificateValidationCallback RemoteCertificateValidator = null, X509Certificate ClientCert = null, String HTTPVirtualHost = null, String UserAgent = DefaultHTTPUserAgent, System.TimeSpan QueryTimeout = null, DNSClient DNSClient = null ) : System

Create an abstract HTTP/JSON client.

Защищенные методы

Метод Описание
SendJSONError ( System.DateTime Timestamp, Object Sender, Newtonsoft.Json.Linq.JObject JSON ) : void

Notify that a JSON error occured.

Описание методов

AJSONClient() публичный Метод

Create an abstract HTTP/JSON client.
public AJSONClient ( String ClientId, String Hostname, IPPort RemotePort, RemoteCertificateValidationCallback RemoteCertificateValidator = null, X509Certificate ClientCert = null, String HTTPVirtualHost = null, String UserAgent = DefaultHTTPUserAgent, System.TimeSpan QueryTimeout = null, DNSClient DNSClient = null ) : System
ClientId String A unqiue identification of this client.
Hostname String The hostname to connect to.
RemotePort IPPort The remote TCP port to connect to.
RemoteCertificateValidator RemoteCertificateValidationCallback A delegate to verify the remote TLS certificate.
ClientCert System.Security.Cryptography.X509Certificates.X509Certificate The TLS client certificate to use.
HTTPVirtualHost String An optional HTTP virtual host name to use.
UserAgent String An optional HTTP user agent to use.
QueryTimeout System.TimeSpan An optional timeout for upstream queries.
DNSClient DNSClient An optional DNS client.
Результат System

SendJSONError() защищенный Метод

Notify that a JSON error occured.
protected SendJSONError ( System.DateTime Timestamp, Object Sender, Newtonsoft.Json.Linq.JObject JSON ) : void
Timestamp System.DateTime The timestamp of the error received.
Sender Object The sender of this error message.
JSON Newtonsoft.Json.Linq.JObject The JSON fault/error.
Результат void