Example #1
0
        public void HandleSession(HttpContext context)
        {
            var res = context.Response;
            var ses = context.Session;

            var node = new ObjectDumper().Dump(ses);

            res.ContentType = "application/json";
            res.Write(node.ToJson());
        }
Example #2
0
        public void HandleCache(HttpContext context)
        {
            var res = context.Response;
            var cache = context.Cache;

            var node = new ObjectDumper().Dump(cache);

            res.ContentType = "application/json";
            res.Write(node.ToJson());
        }