Exemple #1
0
 /// <summary>
 /// Interact Integration client.
 /// </summary>
 /// <param name="hostNameOrAddress">The host name or IP address to resolve.</param>
 /// <param name="port">The port to connect to.</param>
 /// <exception cref="System.ArgumentNullException"></exception>
 /// <exception cref="System.IndexOutOfRangeException"></exception>
 public HttpClient(string hostNameOrAddress, int port)
     : base(hostNameOrAddress, port)
 {
     OnCreated();
     Initialise();
     _connection          = new WebConnectionAdapter();
     _connection.Port     = port;
     _connection.HttpHost = hostNameOrAddress;
 }
Exemple #2
0
 /// <summary>
 /// Interact Integration client.
 /// </summary>
 /// <param name="address">An IP address.</param>
 /// <param name="port">The port to connect to.</param>
 /// <exception cref="System.ArgumentNullException"></exception>
 /// <exception cref="System.IndexOutOfRangeException"></exception>
 public HttpClient(IPAddress address, int port)
     : base(address, port)
 {
     OnCreated();
     Initialise();
     _connection          = new WebConnectionAdapter();
     _connection.Port     = port;
     _connection.HttpHost = address.ToString();
 }
Exemple #3
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="reader">The current http client.</param>
 /// <param name="connection">The web connection adapter used for http connection.</param>
 public DefaultResponseStreamProcessor(HttpClient reader, WebConnectionAdapter connection)
 {
     _reader     = reader;
     _connection = connection;
 }
Exemple #4
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 public HttpClient()
 {
     OnCreated();
     Initialise();
     _connection = new WebConnectionAdapter();
 }
Exemple #5
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="data">The data to send to the http server.</param>
 /// <param name="connection">The web connection adapter used for http connection.</param>
 public DefaultRequestStreamProcessor(string data, WebConnectionAdapter connection)
 {
     _data       = data;
     _connection = connection;
 }