Class WebModuleExtensions
Provides extension methods for types implementing IWebModule.
Inherited Members
Namespace: EmbedIO
Syntax
public static class WebModuleExtensions
Methods
GetImplementation(IWebModule)
Gets the underlying IWebModuleImpl interface of an IWebModule.
This API mainly supports the EmbedIO infrastructure; it is not intended to be used directly from your code, unless to fulfill very specific needs in the development of plug-ins (modules, etc.) for EmbedIO.
Declaration
public static IWebModuleImpl GetImplementation(this IWebModule this)
Parameters
| Type | Name | Description |
|---|---|---|
| IWebModule | this | The IWebModule interface on which this method is called. |
Returns
| Type | Description |
|---|---|
| IWebModuleImpl | The underlying IWebModuleImpl interface representing the web module implementation. |
HandleHttpException<TWebModule>(TWebModule, HttpExceptionHandlerCallback)
Sets the HTTP exception handler on an IWebModule.
Declaration
public static TWebModule HandleHttpException<TWebModule>(this TWebModule this, HttpExceptionHandlerCallback handler)
where TWebModule : IWebModule
Parameters
| Type | Name | Description |
|---|---|---|
| TWebModule | this | The |
| HttpExceptionHandlerCallback | handler | The HTTP exception handler. |
Returns
| Type | Description |
|---|---|
| TWebModule |
|
Type Parameters
| Name | Description |
|---|---|
| TWebModule | The type of the web server. |
See Also
HandleUnhandledException<TWebModule>(TWebModule, ExceptionHandlerCallback)
Sets the unhandled exception handler on an IWebModule.
Declaration
public static TWebModule HandleUnhandledException<TWebModule>(this TWebModule this, ExceptionHandlerCallback handler)
where TWebModule : IWebModule
Parameters
| Type | Name | Description |
|---|---|---|
| TWebModule | this | The |
| ExceptionHandlerCallback | handler | The unhandled exception handler. |
Returns
| Type | Description |
|---|---|
| TWebModule |
|
Type Parameters
| Name | Description |
|---|---|
| TWebModule | The type of the web server. |