Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Microsoft.​AspNetCore.​Builder.​UseMiddlewareExtensions

Assembly: Microsoft.AspNetCore.Http.Abstractions

Inheritance: object → UseMiddlewareExtensions

Extension methods for adding typed middleware.

Methods

public static IApplicationBuilder
UseMiddleware​(IApplicationBuilder app, object[] args)
Adds a middleware type to the application's request pipeline.
Returns The <see cref="T:Microsoft.AspNetCore.Builder.IApplicationBuilder" /> instance.
app The <see cref="T:Microsoft.AspNetCore.Builder.IApplicationBuilder" /> instance.
args The arguments to pass to the middleware type instance's constructor.
public static IApplicationBuilder
UseMiddleware​(IApplicationBuilder app, System.​Type middleware, object[] args)
Adds a middleware type to the application's request pipeline.
Returns The <see cref="T:Microsoft.AspNetCore.Builder.IApplicationBuilder" /> instance.
app The <see cref="T:Microsoft.AspNetCore.Builder.IApplicationBuilder" /> instance.
middleware The middleware type.
args The arguments to pass to the middleware type instance's constructor.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object