Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

conditional middleware .net core

app.UseWhen(context => context.Request.Path.StartsWithSegments("/api"), appBuilder =>
{
    appBuilder.UseMiddlewareTwo();
});
Source by www.devtrends.co.uk #
 
PREVIOUS NEXT
Tagged: #conditional #middleware #core
ADD COMMENT
Topic
Name
4+9 =