Example #1
0
        public static Task GetUtile(HttpContext context)
        {
            var fish  = new FishPicture();
            var utile = new UtilePicture(fish);

            return(SvgRequestHandler.GetSvg(context, utile));
        }
Example #2
0
        public static Task GetSquareLimit(HttpContext context)
        {
            var depthRouteValue = (string)context.GetRouteValue("n");
            var depth           = int.Parse(depthRouteValue);

            var fish        = new FishPicture();
            var squareLimit = new SquareLimitPicture(depth, fish);

            return(SvgRequestHandler.GetSvg(context, squareLimit));
        }
Example #3
0
        public static Task GetCorner(HttpContext context)
        {
            var depthRouteValue = (string)context.GetRouteValue("n");
            var depth           = int.Parse(depthRouteValue);

            var fish   = new FishPicture();
            var corner = new CornerPicture(depth, fish);

            return(SvgRequestHandler.GetSvg(context, corner));
        }
Example #4
0
        public static Task GetFish(HttpContext context)
        {
            var fish = new FishPicture();

            return(SvgRequestHandler.GetSvg(context, fish));
        }