| Class | Description |
---|
| AdoNetFastSerializerSurrogate |
An ISurrogateSelector implementation which looks for supported ADO.Net serializable types
(DataSet and DataTable) and returns itself as an ISerializationSurrogate which can serialize
those objects using Fast Serialization.
|
| AdoNetHelper | Contains static helper methods for ADO.Net objects including Fast Serialization |
| CachedDataManager | Static class manages the local and distributed caches and handles all requests for object retrieval and object storing |
| CachedDataManager_AggregationServices | Aggregation-related services for the Cached Data Manager, which allows aggregation
objects, and closely related objects, to be cached locally for reuse |
| CachedDataManager_BuilderServices | Builder-specific services for the Cached Data Manager, which allows items to be
cached, or portions of items and REST reponses related to items to be cached |
| CachedDataManager_ItemServices | Item-specific services for the Cached Data Manager, which allows items to be
cached, or portions of items and REST reponses related to items to be cached |
| CachedDataManager_Settings | Settings for the cached data manager, relating to retention of objects |
| CachedDataManager_WebContentServices | Web content related services for the Cached Data Manager, which allows top-level static
web content objects, and closely related objects, to be cached locally for resuse |
| CachedDataManager_WebSkinServices | Web skin-related services for the Cached Data Manager, which allows skin
objects to be cached locally for reuse |
| OptimizationException |
Exception thrown when a value being optimized does not meet the required criteria for optimization.
|
| SerializationReader |
A SerializationReader instance is used to read stored values and objects from a byte array.
Once an instance is created, use the various methods to read the required data.
The data read MUST be exactly the same type and in the same order as it was written.
|
| SerializationWriter |
A SerializationWriter instance is used to store values and objects in a byte array.
Once an instance is created, use the various methods to store the required data.
ToArray() will return a byte[] containing all of the data required for deserialization.
This can be stored in the SerializationInfo parameter in an ISerializable.GetObjectData() method.
As an alternative to ToArray(), if you want to apply some post-processing to the serialized bytes,
such as compression, call AppendTokenTables first to ensure that the string and object token tables
are appended to the stream, and then cast BaseStream to MemoryStream. You can then access the
MemoryStream's internal buffer as follows:
Examples
| Copy |
---|
writer.AppendTokenTables();
MemoryStream stream = (MemoryStream) writer.BaseStream;
serializedData = MiniLZO.Compress(stream.GetBuffer(), (int) stream.Length); |
|