Serializing CacheItem through a web service

A CacheItem object defined in theMicrosoft.Practices.EnterpriseLibrary.Caching Namespace does not serialize. Is there a way to serialize a CacheItem?
[347 byte] By [Hoan] at [2007-12-25]
# 1

Hoan,

CacheItem is not serializable.... you would have to create a derived class and make it serializable implementing ISerializable class.
Then to make Caching AB work with this new CacheItem class you may have to create a new CacheManager too.
Rgds
Rodrigo
rfreire at 2007-10-8 > top of Msdn Tech,.NET Development,ASMX Web Services and XML Serialization...

.NET Development

Site Classified