Write() public abstract method

Write a single cache item to the output stream.
public abstract Write ( Stream outputStream, ICacheItem cacheItem ) : void
outputStream Stream
cacheItem ICacheItem
return void
Exemplo n.º 1
0
 private void Store(Stream s, Dictionary <string, ICacheItem> table)
 {
     UtilityMethods.WriteInt32(s, table.Count);
     foreach (KeyValuePair <string, ICacheItem> entry in table)
     {
         UtilityMethods.WriteString(s, (string)entry.Key);
         persister.Write(s, (ICacheItem)entry.Value);
     }
 }