Beispiel #1
0
        public void ProcessRequest(HttpContext context)
        {
            //Retrieve the collection object from the cache and write it as a DZC.
            string     cacheKey   = context.Request.Url.Segments[context.Request.Url.Segments.Length - 1];
            Collection collection = (Collection)context.Cache[cacheKey];

            context.Response.ContentType = "text/xml";
            DzcSerializer.Serialize(context.Response.Output, collection);
        }
Beispiel #2
0
        /// <summary>
        /// Write a collection's image data as a DZC into an XmlWriter.
        /// </summary>
        public static void Serialize(XmlWriter xmlWriter, Collection collection)
        {
            if (null == collection)
            {
                throw new ArgumentNullException("collection");
            }

            DzcSerializer s = new DzcSerializer(collection);

            s.Write(xmlWriter);
        }
Beispiel #3
0
 public void ToDzc(TextWriter textWriter)
 {
     DzcSerializer.Serialize(textWriter, this);
 }