C# Class org.GraphDefined.Vanaheimr.Hermod.SOAP.AHTTPClient

An abstract base class for all HTTP clients.
Inheritance: IDisposable
Afficher le fichier Open project: Vanaheimr/Hermod

Méthodes publiques

Свойство Type Description
DefaultQueryTimeout System.TimeSpan
DefaultRemotePort IPPort

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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.

Method Details

AHTTPClient() public méthode

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.
Résultat System

Dispose() public méthode

Dispose this object.
public Dispose ( ) : void
Résultat void

SendException() protected méthode

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.
Résultat void

SendHTTPError() protected méthode

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.
Résultat void

Property Details

DefaultQueryTimeout public_oe static_oe property

The default timeout for upstream queries.
public static TimeSpan,System DefaultQueryTimeout
Résultat System.TimeSpan

DefaultRemotePort public_oe static_oe property

The default remote TCP port to connect to.
public static IPPort DefaultRemotePort
Résultat IPPort