This documentation is archived and is not being maintained.

SimpleWorkerRequest Class

Provides a simple implementation of the HttpWorkerRequest abstract class that can be used to host ASP.NET applications outside an Internet Information Services (IIS) application. You can employ SimpleWorkerRequest directly or extend it.

For a list of all members of this type, see SimpleWorkerRequest Members.

System.Object
   System.Web.HttpWorkerRequest
      System.Web.Hosting.SimpleWorkerRequest

[Visual Basic]
<ComVisible(False)>
Public Class SimpleWorkerRequest
   Inherits HttpWorkerRequest
[C#]
[ComVisible(false)]
public class SimpleWorkerRequest : HttpWorkerRequest
[C++]
[ComVisible(false)]
public __gc class SimpleWorkerRequest : public HttpWorkerRequest
[JScript]
public
   ComVisible(false)
class SimpleWorkerRequest extends HttpWorkerRequest

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Remarks

This simple implementation of HttpWorkerRequest provides the request URL and the query string and captures body of the output into a TextWriter. To achieve richer functionality, such as providing posted content and headers and capturing the response headers or response body as binary data, you should extend SimpleWorkerRequest and override the appropriate HttpWorkerRequest methods.

Requirements

Namespace: System.Web.Hosting

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

Assembly: System.Web (in System.Web.dll)

See Also

SimpleWorkerRequest Members | System.Web.Hosting Namespace

Show: