File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
csharp/ql/test/library-tests/dataflow/flowsources/aspremote Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public object MyAction(ViewModel viewModel)
25
25
26
26
public class AspRoutingEndpoints
27
27
{
28
- public delegate void MapGetHandler ( string delegateparam ) ;
28
+ public delegate void MapGetHandler ( string param ) ;
29
29
30
30
public void HandlerMethod ( string param ) { }
31
31
@@ -42,7 +42,12 @@ public void M1(string[] args)
42
42
app . MapGet ( "/api/redirect/{lambdaParam}" , handler ) ;
43
43
44
44
MapGetHandler handler2 = HandlerMethod ;
45
- app . MapGet ( "/api/redirect/{param}" , handler2 ) ;
45
+ app . MapGet ( "/api/redirect/{mapGetParam}" , handler2 ) ;
46
+
47
+ app . MapPost ( "/api/redirect/{mapPostParam}" , ( string mapPostParam ) => { } ) ;
48
+ app . MapPut ( "/api/redirect/{mapPutParam}" , ( string mapPutParam ) => { } ) ;
49
+ app . MapDelete ( "/api/redirect/{mapDeleteParam}" , ( string mapDeleteParam ) => { } ) ;
50
+
46
51
app . Run ( ) ;
47
52
}
48
53
}
Original file line number Diff line number Diff line change @@ -7,3 +7,6 @@ remoteFlowSources
7
7
| AspRemoteFlowSource.cs:39:61:39:65 | myApi |
8
8
| AspRemoteFlowSource.cs:39:75:39:79 | myUrl |
9
9
| AspRemoteFlowSource.cs:41:46:41:56 | lambdaParam |
10
+ | AspRemoteFlowSource.cs:47:65:47:76 | mapPostParam |
11
+ | AspRemoteFlowSource.cs:48:63:48:73 | mapPutParam |
12
+ | AspRemoteFlowSource.cs:49:69:49:82 | mapDeleteParam |
You can’t perform that action at this time.
0 commit comments