Click or drag to resize

HttpServerConnection Properties

The HttpServerConnection type exposes the following members.

Properties
  NameDescription
Public propertyAutoReloginOnSessionError
Gets or sets flag for automatic relogin on session timeout. The default value is false.
Public propertyCode exampleCompression
Property specifies the way of compression of AML sent through IOM.HttpServerConnection. Value from enumeration 'CompressionType' (namespace Aras.Common.Compression) can be set. Available values are:
  • gzip data compression to the gzip format
  • deflate data compression to the deflate format
  • none Default value. Data sent through IOM.HttpServerConnection aren't compressed.
It is highly recommended to store type of compression you are using in configuration file of your application. Example section of application configuration file:
XML
<configuration>
    <appSettings>
        <add key="CompressionType" value="gzip"/>
    </appSettings >
</configuration>
Examples of setting value of Compression property from application configuration file.
Examples
...
HttpServerConnection connection = CreateHttpServerConnection("innovatorServerUrl");
connaction.Compression = GetCompressionTypeFromAppConfig();
...
private CompressionType GetCompressionTypeFromAppConfig()
{
 string value = ConfigurationManager.AppSettings["CompressionType"];
 if (String.IsNullOrEmpty(value))
 {
     return CompressionType.none;
 }
 else
 {
     return (CompressionType)Enum.Parse(typeof(CompressionType), value);
 }
}
Public propertyReadWriteTimeout
Gets or sets a time-out in milliseconds when writing to or reading from a stream.
Public propertyTimeout
Gets or sets the time-out value in milliseconds for the System.Net.HttpWebRequest.GetResponse() and System.Net.HttpWebRequest.GetRequestStream() methods.
Top
See Also