Unosquare
    Show / Hide Table of Contents

    Class WebModuleExtensions

    Provides extension methods for types implementing IWebModule.

    Inheritance
    Object
    WebModuleExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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 TWebModule on which this method is called.

    HttpExceptionHandlerCallback handler

    The HTTP exception handler.

    Returns
    Type Description
    TWebModule

    this with the OnHttpException property set to handler.

    Type Parameters
    Name Description
    TWebModule

    The type of the web server.

    See Also
    OnHttpException
    HttpExceptionHandler

    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 TWebModule on which this method is called.

    ExceptionHandlerCallback handler

    The unhandled exception handler.

    Returns
    Type Description
    TWebModule

    this with the OnUnhandledException property set to handler.

    Type Parameters
    Name Description
    TWebModule

    The type of the web server.

    See Also
    OnUnhandledException
    ExceptionHandler

    Comments

    Back to top Copyright © 2017-2019 Unosquare