Property
|
Description
|
CompressionEnabled()
|
Gets and sets PROGRESS.Session.TcpKeepAliveIntervalReturns TRUE if getCompressionEnabled() is called. The default value is FALSE,
|
CompressionLevel()
|
Gets and sets PROGRESS.Session.CompressionLevel
|
CompressionThreshold()
|
Gets and Sets PROGRESS.Session.CompressionThreshold
|
using System.Collections.Generic;
using System.Linq; using System.Text; using Progress.Open4GL.Proxy; using Progress.Open4GL.DynamicAPI; namespace AppServerCompressionExample { class Program { static void Main(string[] args) { Connection conn = new Connection(null, null, "AppServer://localhost:5162/asbroker1"); conn.CompressionEnabled = true; conn.CompressionLevel = 5; conn.CompressionThreshold = 256; OpenAppObject app = new OpenAppObject(conn, "testapp"); ParameterSet pset = new ParameterSet(2); pset.setLongCharParameter(0, "longchar value", ParameterSet.INPUT); pset.setLongCharParameter(1, "", ParameterSet.OUTPUT); app.runProcedure("echo.p", pset); String echoret = (String) pset.getOutputParameter(1); Console.WriteLine("Return : " + echoret); app.Dispose(); conn.ReleaseConnection(); } } } |
Progress.Open4GL.RunTimeProperties.CompressionEnabled = true;
Progress.Open4GL.RunTimeProperties.CompressionLevel = 5; Progress.Open4GL.RunTimeProperties.CompressionThreshold = 256; |