, IHttpHandler. :
public interface IHttpHandler
{
void ProcessRequest(HttpContext context);
bool IsReusable { get; }
}
HttpContext - , . , . Server . Request HttpRequest, Response .
- Reflector HttpContext , .
:
public class HelloWorldHandler: IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
context.Response.Write("Hello World");
context.Response.End();
}
public bool IsReusable
{
get { return false; }
}
}
Global.asax . , , , IHttpModule.
web.config - , IIS 7 - . , HttpHandler, .
web.config , , . , , web.config, IIS. . http://msdn.microsoft.com/en-us/library/b5ysx397(v=VS.85).aspx.
, . , , .