Class MapExtensions
public static class MapExtensions
- Inheritance
-
objectMapExtensions
Methods
Map(IGlowApplicationBuilder, string, Action<IGlowApplicationBuilder>)
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.
public static IGlowApplicationBuilder Map(this IGlowApplicationBuilder app, string pathMatch, Action<IGlowApplicationBuilder> configuration)
Parameters
app
IGlowApplicationBuilderThe IGlowApplicationBuilder instance.
pathMatch
stringThe request path to match.
configuration
Action<IGlowApplicationBuilder>The branch to take for positive path matches.
Returns
- IGlowApplicationBuilder
The IGlowApplicationBuilder instance.
Map(IGlowApplicationBuilder, string, bool, Action<IGlowApplicationBuilder>)
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.
public static IGlowApplicationBuilder Map(this IGlowApplicationBuilder app, string pathMatch, bool preserveMatchedPathSegment, Action<IGlowApplicationBuilder> configuration)
Parameters
app
IGlowApplicationBuilderThe IGlowApplicationBuilder instance.
pathMatch
stringThe request path to match.
preserveMatchedPathSegment
boolif false, matched path would be removed from Request.Path and added to Request.PathBase.
configuration
Action<IGlowApplicationBuilder>The branch to take for positive path matches.
Returns
- IGlowApplicationBuilder
The IGlowApplicationBuilder instance.