Class PipelinePartitioningExtensions
Provides thin semantic wrappers for non-rejoining ASP.NET Core pipeline branches.
Inherited Members
Namespace: Eigenverft.WebLib.Infrastructure.Hosting.Pipeline
Assembly: Eigenverft.WebLib.Infrastructure.dll
Syntax
public static class PipelinePartitioningExtensions
Methods
| Edit this page View SourceMapIsolated(IApplicationBuilder, PathString, Action<IApplicationBuilder>)
Maps an exclusive URL subtree using native ASP.NET Core Map branch semantics.
Declaration
public static IApplicationBuilder MapIsolated(this IApplicationBuilder app, PathString pathMatch, Action<IApplicationBuilder> configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| IApplicationBuilder | app | The application builder. |
| PathString | pathMatch | The URL subtree to own. |
| Action<IApplicationBuilder> | configuration | The native branch pipeline configuration. |
Returns
| Type | Description |
|---|---|
| IApplicationBuilder | The original application builder. |
Remarks
The matched path segment is preserved so normal UseStaticFiles/UseFileServer middleware can
resolve /apps/... against the corresponding wwwroot/apps/... path without a custom mount layer.
The branch does not rejoin the remaining pipeline. Any already-active outer status-code-pages feature is
disabled for the isolated request so status-code re-execution cannot transfer a branch-owned 404 to
MapRemaining or later shell endpoints.
MapRemaining(IApplicationBuilder, Action<IApplicationBuilder>)
Defines the terminal pipeline for all requests not claimed by earlier isolated mappings.
Declaration
public static IApplicationBuilder MapRemaining(this IApplicationBuilder app, Action<IApplicationBuilder> configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| IApplicationBuilder | app | The application builder. |
| Action<IApplicationBuilder> | configuration | The remaining shell pipeline. |
Returns
| Type | Description |
|---|---|
| IApplicationBuilder | The original application builder. |
Remarks
This uses native non-rejoining MapWhen branch semantics with an always-true predicate. Declare it after
all MapIsolated(IApplicationBuilder, PathString, Action<IApplicationBuilder>) branches.
The callback intentionally remains a normal IApplicationBuilder. Configure endpoint routing with
UseRouting() and UseEndpoints(...) rather than introducing a WebLib-specific hybrid pipeline/router builder.