UseMiddlewareExtensions UseMiddlewareExtensions Class

Extension methods for adding typed middlware.

Syntax

Declaration

public static class UseMiddlewareExtensionsPublic Module UseMiddlewareExtensions

Inheritance Hierarchy

  • System.Object
    System.Object
  • UseMiddlewareExtensions
    UseMiddlewareExtensions

Inherited Members

ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Methods summary

Adds a middleware type to the application's request pipeline.
Adds a middleware type to the application's request pipeline.

Methods

  • UseMiddleware(IApplicationBuilder, Type, Object[])
    UseMiddleware(IApplicationBuilder, Type, Object())
    Adds a middleware type to the application's request pipeline.
    public static IApplicationBuilder UseMiddleware(this IApplicationBuilder app, Type middleware, params object[] args)<ExtensionAttribute>
    Public Shared Function UseMiddleware(app As IApplicationBuilder, middleware As Type, ParamArray args As Object()) As IApplicationBuilder

    Parameters

    Returns

  • UseMiddleware<TMiddleware>(IApplicationBuilder, Object[])
    UseMiddleware(Of TMiddleware)(IApplicationBuilder, Object())
    Adds a middleware type to the application's request pipeline.
    public static IApplicationBuilder UseMiddleware<TMiddleware>(this IApplicationBuilder app, params object[] args)<ExtensionAttribute>
    Public Shared Function UseMiddleware(Of TMiddleware)(app As IApplicationBuilder, ParamArray args As Object()) As IApplicationBuilder

    Parameters

    Returns

Details

Assembly

Microsoft.AspNetCore.Http.Abstractions.dll