UseForFeatureExtensions.UseMiddlewareForFeature<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Conditionally creates a branch in the request pipeline that is rejoined to the main pipeline.
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseMiddlewareForFeature<T> (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, string featureName);
static member UseMiddlewareForFeature : Microsoft.AspNetCore.Builder.IApplicationBuilder * string -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseMiddlewareForFeature(Of T) (app As IApplicationBuilder, featureName As String) As IApplicationBuilder
Type Parameters
- T
Parameters
- featureName
- String
Name of the feature that needs to be enabled to include the middleware in the application pipeline.
Returns
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET