File tree Expand file tree Collapse file tree
src/TestServer/Controllers/Api/v1 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11using System ;
2+ using System . Diagnostics ;
23using System . IO ;
34using System . Threading . Tasks ;
45using Simplify . Web ;
@@ -19,6 +20,21 @@ public async Task<ControllerResponse> Invoke()
1920
2021 var fileData = await stream . ReadToEndAsync ( ) ;
2122
23+ Trace . TraceInformation ( $ "Files count: '{ Model . Files . Count } '") ;
24+ Console . WriteLine ( $ "Files count: '{ Model . Files . Count } '") ;
25+
26+ Trace . TraceInformation ( $ "File name: '{ file . FileName } '") ;
27+ Console . WriteLine ( $ "File name: '{ file . FileName } '") ;
28+
29+ Trace . TraceInformation ( $ "File content: '{ fileData } '") ;
30+ Console . WriteLine ( $ "File content: '{ fileData } '") ;
31+
32+ Trace . TraceInformation ( $ "Title: '{ Model . Title } '") ;
33+ Console . WriteLine ( $ "Title: '{ Model . Title } '") ;
34+
35+ Trace . TraceInformation ( $ "Count: '{ Model . Count } '") ;
36+ Console . WriteLine ( $ "Count: '{ Model . Count } '") ;
37+
2238 // Assert parameters were bound to the typed model
2339
2440 if ( Model . Title != "My title" )
You can’t perform that action at this time.
0 commit comments