Use​Extensions Use​Extensions Class

Definition

Extension methods for adding middleware.
public static class UseExtensionsPublic Module UseExtensions
Inheritance
System.ObjectSystem.Object
UseExtensionsUseExtensions

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

Use(IApplicationBuilder, Func<HttpContext, Func<Task>, Task>) Use(IApplicationBuilder, Func(Of HttpContext, Func(Of Task), Task))

Adds a middleware delagate defined in-line to the application's request pipeline.
public static IApplicationBuilder Use(this IApplicationBuilder app, Func<HttpContext, Func<Task>, Task> middleware)<ExtensionAttribute>
Public Shared Function Use(app As IApplicationBuilder, middleware As Func(Of HttpContext, Func(Of Task), Task)) As IApplicationBuilder
Parameters
middleware
System.Func<HttpContext, System.Func<System.Threading.Tasks.Task>, System.Threading.Tasks.Task> System.Func(Of HttpContext, System.Func(Of System.Threading.Tasks.Task), System.Threading.Tasks.Task)
A function that handles the request or calls the given next function.
Returns