
SimpleWorkerRequest | 525
Hosting
Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
ISAPIRuntime
System.Web.Hosting (system.web.dll)
sealed class
This class supports the .NET Framework infrastructure. You do not need to use it
directly in your code.
SimpleWorkerRequest
System.Web.Hosting (system.web.dll)
class
This class extends the abstract System.Web.HttpWorkerRequest class. It provides features that
allow you to read the incoming HTTP request and send an appropriate HTTP
response. You can retrieve the URL request with the query string appended (through
GetRawUrl( )), a server variable by name from a dictionary collection (GetServerVariable( )),
and the physical file path of the requested URL (GetFilePathTranslated( )). You send a
response as a series of bytes with the SendResponseFromFile( ) or SendResponseFromMemory( )
methods. Use FlushResponse( ) to send all pending data to the client. If you want to
provide higher-level methods or properties, such as those found in the System.Web.HttpRe-
sponse and System.Web.HttpRequest classes, you should extend SimpleWorkerRequest.
public sealed class ISAPIRuntime : IISAPIRuntime {
// Public Constructors
public ISAPIRuntime();
// Public Instance Methods
public void DoGCCollect(); // implements IISAPIRuntime
public int ProcessRequest(IntPtr ecb, int iWRType); // implements IISAPIRuntime ...