AutoCorrectStreamPosition Enumeration

ScaleOut Software NamedCache API
Defines the stream reading behavior when the serialized key/value elements are retrieved from in-memory data grid as the memory stream chunks. When using XML-based custom serializers it is necessary for NamedMapTKey, TValue to control the memory stream position after reading an individual key or its value out of memory stream.

Namespace:  Soss.Client.Concurrent
Assembly:  soss_namedcache (in soss_namedcache.dll) Version:

public enum AutoCorrectStreamPosition

  Member nameValueDescription
Always0 The memory stream position is validated and sets correctly to point to the next element (regardless whether it is key or value) in the memory stream.
Never1 The memory stream position is set by the key or value serializer based on its knowledge about key/value offsets within the memory stream.

This property is only used for parallel operations during the InvokeTParam, TResult(NamedMapInvokableTKey, TValue, TParam, TResult, TParam) or ExecuteParallelQuery(QueryConditionTKey, TValue) method calls.

By default the AutoCorrectStreamPosition.Always is used by the AutoCorrectStreamPosition property.

See Also