UseForFeatureExtensions.UseForFeature Method

Definition

Conditionally creates a branch in the request pipeline that is rejoined to the main pipeline.

public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseForFeature (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, string featureName, Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> configuration);
static member UseForFeature : Microsoft.AspNetCore.Builder.IApplicationBuilder * string * Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseForFeature (app As IApplicationBuilder, featureName As String, configuration As Action(Of IApplicationBuilder)) As IApplicationBuilder

Parameters

featureName
String

The feature that is required to be enabled to take use this application branch

configuration
Action<IApplicationBuilder>

Configures a branch to take

Returns

Applies to