Use​Middleware​Extensions Use​Middleware​Extensions Class

Definition

Extension methods for adding typed middlware.
public static class UseMiddlewareExtensionsPublic Module UseMiddlewareExtensions
Inheritance
System.ObjectSystem.Object
UseMiddlewareExtensionsUseMiddlewareExtensions

Inherited Members

System.Object

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

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
middleware
System.Type System.Type
The middleware type.
args
System.Object[] System.Object()
The arguments to pass to the middleware type instance's constructor.
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
Type Parameters
TMiddleware
The middleware type.
Parameters
args
System.Object[] System.Object()
The arguments to pass to the middleware type instance's constructor.
Returns