CX_OBJECT_MANAGER::GetTerminalServerCacheSize
184660
Description:
This function returns the currently used value that would be used for the size of the cache if it was determined that ClassiX was started via a remote desktop connection. This corresponds either to the environment variable CX_TS_CACHE_SIZE or the default value of 64MB.
Whether ClassiX is started via a remote desktop connection can be determined separately via CX_SYSTEM_OBJECT::IsRunningOnTerminalServer.
Code example:
Var(tsCacheSize, cacheSize)
SystemObject Call(IsRunningOnTerminalServer) if {
GetManager(OBJECT) Call(GetTerminalServerCacheSize) -> tsCacheSize
GetManager(OBJECT) Call(GetCacheSize) -> cacheSize
cacheSize tsCacheSize String("Running via Remote Desktop, cache is %s, should be %s.") Attention
}
SystemObject Call(IsRunningOnTerminalServer) if {
GetManager(OBJECT) Call(GetTerminalServerCacheSize) -> tsCacheSize
GetManager(OBJECT) Call(GetCacheSize) -> cacheSize
cacheSize tsCacheSize String("Running via Remote Desktop, cache is %s, should be %s.") Attention
}
Stack | Position | Object type | Brief description |
---|---|---|---|
Stack(In) | Top | CX_OBJECT_MANAGER | Object Manager |
Stack(Out) | Top | CX_VALUE | Terminal Server Cache |