public static Task GetUtile(HttpContext context) { var fish = new FishPicture(); var utile = new UtilePicture(fish); return(SvgRequestHandler.GetSvg(context, utile)); }
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)); }
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)); }
public static Task GetFish(HttpContext context) { var fish = new FishPicture(); return(SvgRequestHandler.GetSvg(context, fish)); }