







The controllermodule uses the prototype design pattern
to be able to create new controller objects for requests
if the stack is empty.
Namespace:
HttpServer.HttpModules
Assembly:
HttpServer (in HttpServer.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
public void Add( RequestController prototype ) |
| Visual Basic (Declaration) |
|---|
Public Sub Add ( _ prototype As RequestController _ ) |
| Visual C++ |
|---|
public: void Add( RequestController^ prototype ) |
Parameters
- prototype
- Type: HttpServer.Controllers..::.RequestController
A prototype which will be cloned for each request
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentNullException | |
| System..::.InvalidProgramException | If a controller with that name have been added already. |
