Class BondConfigurationBuilderExtensions
Inherited Members
Namespace:CacheManager.Core
Assembly:CacheManager.Serialization.Bond.dll
Syntax
public static class BondConfigurationBuilderExtensions
Methods
| Improve this Doc View SourceWithBondCompactBinarySerializer(ConfigurationBuilderCachePart, Int32)
Configures the cache manager to use the
Microsoft.Bond
based cache serializer.
This version uses Bond.Protocols.CompactBinaryWriter`1 and Bond.Protocols.CompactBinaryReader`1.
Declaration
public static ConfigurationBuilderCachePart WithBondCompactBinarySerializer(this ConfigurationBuilderCachePart part, int defaultWriteBufferSize = 1024)
Parameters
Type | Name | Description |
---|---|---|
ConfigurationBuilderCachePart | part | The configuration part. |
Int32 | defaultWriteBufferSize | The buffer size used to serialize objects. Can be used to tune Bond performance. |
Returns
Type | Description |
---|---|
ConfigurationBuilderCachePart | The builder instance. |
WithBondFastBinarySerializer(ConfigurationBuilderCachePart, Int32)
Configures the cache manager to use the
Microsoft.Bond
based cache serializer.
This version uses Bond.Protocols.FastBinaryWriter`1 and Bond.Protocols.FastBinaryReader`1.
Declaration
public static ConfigurationBuilderCachePart WithBondFastBinarySerializer(this ConfigurationBuilderCachePart part, int defaultWriteBufferSize = 1024)
Parameters
Type | Name | Description |
---|---|---|
ConfigurationBuilderCachePart | part | The configuration part. |
Int32 | defaultWriteBufferSize | The buffer size used to serialize objects. Can be used to tune Bond performance. |
Returns
Type | Description |
---|---|
ConfigurationBuilderCachePart | The builder instance. |
WithBondSimpleJsonSerializer(ConfigurationBuilderCachePart)
Configures the cache manager to use the
Microsoft.Bond
based cache serializer.
This version uses Bond.Protocols.FastBinaryWriter`1 and Bond.Protocols.FastBinaryReader`1.
Declaration
public static ConfigurationBuilderCachePart WithBondSimpleJsonSerializer(this ConfigurationBuilderCachePart part)
Parameters
Type | Name | Description |
---|---|---|
ConfigurationBuilderCachePart | part | The configuration part. |
Returns
Type | Description |
---|---|
ConfigurationBuilderCachePart | The builder instance. |