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.​MapExtensions
Assembly: Microsoft.AspNetCore.Http.Abstractions
Inheritance: object → MapExtensions
Extension methods for the <see cref="T:Microsoft.AspNetCore.Builder.Extensions.MapMiddleware" /> .
Methods
public static
IApplicationBuilder
Map​(IApplicationBuilder app,
string pathMatch,
System.​Action<​IApplicationBuilder> configuration)
Branches the request pipeline based on matches of the given request path. If the request path starts with
the given path, the branch is executed.
Returns The <see cref="T:Microsoft.AspNetCore.Builder.IApplicationBuilder" /> instance.
app
The <see cref="T:Microsoft.AspNetCore.Builder.IApplicationBuilder" /> instance.
pathMatch
The request path to match.
configuration
The branch to take for positive path matches.
public static
IApplicationBuilder
Map​(IApplicationBuilder app,
Http.​PathString pathMatch,
System.​Action<​IApplicationBuilder> configuration)
Branches the request pipeline based on matches of the given request path. If the request path starts with
the given path, the branch is executed.
Returns The <see cref="T:Microsoft.AspNetCore.Builder.IApplicationBuilder" /> instance.
app
The <see cref="T:Microsoft.AspNetCore.Builder.IApplicationBuilder" /> instance.
pathMatch
The request path to match.
configuration
The branch to take for positive path matches.
public static
IApplicationBuilder
Map​(IApplicationBuilder app,
Http.​PathString pathMatch,
bool preserveMatchedPathSegment,
System.​Action<​IApplicationBuilder> configuration)
Branches the request pipeline based on matches of the given request path. If the request path starts with
the given path, the branch is executed.
Returns The <see cref="T:Microsoft.AspNetCore.Builder.IApplicationBuilder" /> instance.
app
The <see cref="T:Microsoft.AspNetCore.Builder.IApplicationBuilder" /> instance.
pathMatch
The request path to match.
preserveMatchedPathSegment
if false, matched path would be removed from Request.Path and added to Request.PathBase.
configuration
The branch to take for positive path matches.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object