Show / Hide Table of Contents

    Class ApplicationBuilderFactory

    Provides support for creating, using and configuring Middleware or ConfigurableMiddleware<TOptions> implementations.

    Inheritance
    System.Object
    ApplicationBuilderFactory
    Namespace: Cuemon.AspNetCore.Builder
    Assembly: Cuemon.AspNetCore.dll
    Syntax
    public static class ApplicationBuilderFactory

    Methods

    | Improve this Doc

    UseMiddleware<TMiddleware>(IApplicationBuilder)

    Adds a middleware type to the application request pipeline.

    Declaration
    public static IApplicationBuilder UseMiddleware<TMiddleware>(IApplicationBuilder builder)
        where TMiddleware : MiddlewareCore
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Builder.IApplicationBuilder builder

    The Microsoft.AspNetCore.Builder.IApplicationBuilder instance.

    Returns
    Type Description
    Microsoft.AspNetCore.Builder.IApplicationBuilder

    The Microsoft.AspNetCore.Builder.IApplicationBuilder instance.

    Type Parameters
    Name Description
    TMiddleware

    The type of the middleware.

    | Improve this Doc

    UseMiddlewareConfigurable<TMiddleware, TOptions>(IApplicationBuilder, Action<TOptions>)

    Adds a configurable middleware type to the application request pipeline.

    Declaration
    public static IApplicationBuilder UseMiddlewareConfigurable<TMiddleware, TOptions>(IApplicationBuilder builder, Action<TOptions> setup = null)
        where TMiddleware : ConfigurableMiddlewareCore<TOptions> where TOptions : class, new()
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Builder.IApplicationBuilder builder

    The Microsoft.AspNetCore.Builder.IApplicationBuilder instance.

    System.Action<TOptions> setup

    The System.Action<T> which need to be configured.

    Returns
    Type Description
    Microsoft.AspNetCore.Builder.IApplicationBuilder

    The Microsoft.AspNetCore.Builder.IApplicationBuilder instance.

    Type Parameters
    Name Description
    TMiddleware

    The type of the configurable middleware.

    TOptions

    The type of the delegate setup.

    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX