Skip to content

Commit b36bc4e

Browse files
Remove unused GxHttpAzureResponseExtension. (#601)
Fix error on last commit in GXMultiCall when reading inputstream, is must be synchronous.
1 parent 3422f6f commit b36bc4e

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

dotnet/src/dotnetframework/GxClasses/Middleware/GXHttpServices.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff 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
{

dotnet/src/extensions/Azure/Handlers/HttpHandler/GXHttpAzureContextAccessor.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)