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

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

Открытые свойства

Свойство Тип Описание
DefaultQueryTimeout System.TimeSpan
DefaultRemotePort IPPort

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

Метод Описание
AHTTPClient ( 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 client.

Dispose ( ) : void

Dispose this object.

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

Метод Описание
SendException ( System.DateTime Timestamp, Object Sender, Exception Exception ) : void

Notify that an exception occured.

SendHTTPError ( System.DateTime Timestamp, Object Sender, HTTPResponse HttpResponse ) : void

Notify that an HTTP error occured.

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

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

Create an abstract HTTP client.
public AHTTPClient ( 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

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

Dispose this object.
public Dispose ( ) : void
Результат void

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

Notify that an exception occured.
protected SendException ( System.DateTime Timestamp, Object Sender, Exception Exception ) : void
Timestamp System.DateTime The timestamp of the exception.
Sender Object The sender of this exception.
Exception System.Exception The exception itself.
Результат void

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

Notify that an HTTP error occured.
protected SendHTTPError ( System.DateTime Timestamp, Object Sender, HTTPResponse HttpResponse ) : void
Timestamp System.DateTime The timestamp of the error received.
Sender Object The sender of this error message.
HttpResponse HTTPResponse The HTTP response related to this error message.
Результат void

Описание свойств

DefaultQueryTimeout публичное статическое свойство

The default timeout for upstream queries.
public static TimeSpan,System DefaultQueryTimeout
Результат System.TimeSpan

DefaultRemotePort публичное статическое свойство

The default remote TCP port to connect to.
public static IPPort DefaultRemotePort
Результат IPPort