diff options
Diffstat (limited to 'csharp/src/Ice/Instance.cs')
-rw-r--r-- | csharp/src/Ice/Instance.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/csharp/src/Ice/Instance.cs b/csharp/src/Ice/Instance.cs index a4a1c3e7c1d..423b24b96d2 100644 --- a/csharp/src/Ice/Instance.cs +++ b/csharp/src/Ice/Instance.cs @@ -336,6 +336,12 @@ namespace IceInternal return _batchAutoFlushSize; } + public int classGraphDepthMax() + { + // No mutex lock, immutable. + return _classGraphDepthMax; + } + public Ice.ToStringMode toStringMode() { @@ -857,6 +863,19 @@ namespace IceInternal } } + { + const int defaultValue = 100; + var num = _initData.properties.getPropertyAsIntWithDefault("Ice.ClassGraphDepthMax", defaultValue); + if(num < 1 || num > 0x7fffffff) + { + _classGraphDepthMax = 0x7fffffff; + } + else + { + _classGraphDepthMax = num; + } + } + string toStringModeStr = _initData.properties.getPropertyWithDefault("Ice.ToStringMode", "Unicode"); if(toStringModeStr == "Unicode") { @@ -1560,6 +1579,7 @@ namespace IceInternal private DefaultsAndOverrides _defaultsAndOverrides; // Immutable, not reset by destroy(). private int _messageSizeMax; // Immutable, not reset by destroy(). private int _batchAutoFlushSize; // Immutable, not reset by destroy(). + private int _classGraphDepthMax; // Immutable, not reset by destroy(). private Ice.ToStringMode _toStringMode; // Immutable, not reset by destroy(). private int _cacheMessageBuffers; // Immutable, not reset by destroy(). private ACMConfig _clientACM; // Immutable, not reset by destroy(). |