C#: Make one more ASP.NET routing example.

This commit is contained in:
Michael Nebel
2022-08-16 13:03:34 +02:00
parent bd6d3c7347
commit 6e5a412150
2 changed files with 4 additions and 2 deletions

View File

@@ -24,7 +24,6 @@ namespace Testing
public class AspRoutingEndpoints
{
public void M1(string[] args)
{
var builder = WebApplication.CreateBuilder(args);
@@ -32,6 +31,7 @@ namespace Testing
// The delegate parameters are considered flow sources.
app.MapGet("/api/redirect/{newUrl}", (string newUrl) => { });
app.MapGet("/{myApi}/redirect/{myUrl}", (string myApi, string myUrl) => { } );
app.Run();
}

View File

@@ -2,4 +2,6 @@ remoteFlowSourceMembers
| AspRemoteFlowSource.cs:9:23:9:31 | RequestId |
remoteFlowSources
| AspRemoteFlowSource.cs:19:42:19:50 | viewModel |
| AspRemoteFlowSource.cs:34:58:34:63 | newUrl |
| AspRemoteFlowSource.cs:33:58:33:63 | newUrl |
| AspRemoteFlowSource.cs:34:61:34:65 | myApi |
| AspRemoteFlowSource.cs:34:75:34:79 | myUrl |