File tree Expand file tree Collapse file tree 2 files changed +2
-15
lines changed
dotnetframework/GxClasses/Middleware
extensions/Azure/Handlers/HttpHandler Expand file tree Collapse file tree 2 files changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -62,24 +62,18 @@ GXRouting GetRouting()
6262 return gxRouting ;
6363 }
6464#endif
65- #if NETCORE
66- public override async void webExecute ( )
65+ public override void webExecute ( )
6766 {
67+ #if NETCORE
6868 GxRestWrapper handler = null ;
6969#else
70- public override void webExecute ( )
71- {
7270 Utils . GxRestService handler = null ;
7371#endif
7472 try
7573 {
7674 HttpRequest req = context . HttpContext . Request ;
7775 string gxobj = GetNextPar ( ) . ToLower ( ) ;
78- #if NETCORE
79- string jsonStr = await new StreamReader ( req . GetInputStream ( ) ) . ReadToEndAsync ( ) ;
80- #else
8176 string jsonStr = ( new StreamReader ( req . GetInputStream ( ) ) ) . ReadToEnd ( ) ;
82- #endif
8377 GxSimpleCollection < JArray > parmsColl = new GxSimpleCollection < JArray > ( ) ;
8478 if ( ! string . IsNullOrEmpty ( jsonStr ) )
8579 {
Original file line number Diff line number Diff line change @@ -277,11 +277,4 @@ public override PipeWriter BodyWriter
277277 }
278278 }
279279 }
280- public static class GxHttpAzureResponseExtension
281- {
282- public static void Write ( this GxHttpAzureResponse response , string value )
283- {
284- response . Body . Write ( Encoding . UTF8 . GetBytes ( value ) ) ;
285- }
286- }
287280}
You can’t perform that action at this time.
0 commit comments