Posted on: 4/1/2014 2:49:04 PM | Views : 431

Sorry but this is a mixed C# and .NET question.
I have an class derived from IHttpHandler. When I get a call to ProcessRequest I create an image according to the parameters in the query part of  the URL. The filename of the image is returned by the ImageMaker.
But I can see already that the class which creates images is gong to be quite big, and my question is:
Should I simply have it as a member of my IHttpHandler derived class? Or should I put it somewhere else?
As a member it would look sometyhing like this:
public class Handler1 : IHttpHandler { ImageMaker myImageMaker ; public void ProcessRequest(HttpContext context) { HttpResponse r = context.Response; r.ContentType = "image/png"; string sImageName = myImageMaker.CreateImageFromParams(....); string sImageFullFileName = "~/Images/" + s ...

Go to the complete details ...