Class EbicsTransport
A HttpClient based, blocking HTTP transport implementation. Shall only be used when running on a background thread.
public class EbicsTransport : IEbicsTransport
- Inheritance
-
EbicsTransport
- Implements
- Derived
- Inherited Members
Constructors
EbicsTransport()
public EbicsTransport()
Fields
DEFAULT_TIMEOUT
The default communication timeout in milliseconds is five minutes.
public const int DEFAULT_TIMEOUT = 300000
Field Value
Properties
Timeout
HTTP communication timeout in milliseconds.
public int Timeout { get; set; }
Property Value
Remarks
The timeout is the maximum time granted for the total HTTP send/response transaction. If the value 0 is set, then the DEFAULT_TIMEOUT will be applied.
Changing the Timeout is thread save. The new timeout will not affect any currently active SendRequest(EbicsTrace, XmlDocument, string) calls, but will only be effective for any subsequent calls to SendRequest(EbicsTrace, XmlDocument, string) on this instance.
Exceptions
- ArgumentOutOfRangeException
An attempt was made to set a negative value.
Methods
OnWait()
Method that is periodically invoked while waiting for the HTTP request.
protected virtual void OnWait()
Remarks
The default implementation of this method just calls Thread.Sleep(0). A derived class my override this method in order to perform some message pumping.
SendRequest(EbicsTrace, XmlDocument, string)
public XmlDocument SendRequest(EbicsTrace aTrace, XmlDocument xmlRequest, string sUrl)
Parameters
aTraceEbicsTracexmlRequestXmlDocumentsUrlstring