Skip to content

Commit ae3b48d

Browse files
Remove and organize using directives.
Eliminate any unnecessary using statements, specifically the log4net ones that complement PR #871. (cherry picked from commit c4fcee9) # Conflicts: # dotnet/src/dotnetcore/GxClasses.Web/Notifications/WebSocket/WSHandler.cs # dotnet/src/dotnetframework/GxClasses/Core/GXApplication.cs # dotnet/src/dotnetframework/GxClasses/Core/Web/HttpAjaxContext.cs # dotnet/src/dotnetframework/GxClasses/Domain/GXGeolocation.cs # dotnet/src/dotnetframework/GxClasses/Domain/GxCollections.cs # dotnet/src/dotnetframework/GxClasses/Domain/GxGenericCollections.cs # dotnet/src/dotnetframework/GxClasses/Helpers/GXUtilsGeospatial.cs # dotnet/src/dotnetframework/GxClasses/Helpers/JSONHelper.cs # dotnet/src/dotnetframework/GxClasses/Middleware/GXHttp.cs # dotnet/src/dotnetframework/GxClasses/Middleware/GXHttpServices.cs # dotnet/src/dotnetframework/GxClasses/Model/GXBaseObject.cs # dotnet/src/dotnetframework/GxClasses/Model/GXSilentTrn.cs # dotnet/src/dotnetframework/GxClasses/Model/GXWebProcedure.cs # dotnet/src/dotnetframework/GxClasses/Services/GxRestWrapper.cs # dotnet/src/dotnetframework/GxClasses/View/GXWebControls.cs # dotnet/src/dotnetframework/GxWebSocket/WSHandler.cs # dotnet/src/dotnetframework/Projects/StoreManager/Store/StoreManager.cs # dotnet/src/dotnetframework/Providers/Storage/GXAmazonS3/ExternalProviderS3.cs
1 parent 38a9c31 commit ae3b48d

File tree

127 files changed

+225
-471
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+225
-471
lines changed

dotnet/src/dotnetcore/GxClasses.Web/Middleware/GXBCRestService.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ public override Task Post()
4343
bool gxinsertorupdate = IsRestParameter(INSERT_OR_UPDATE_PARAMETER);
4444

4545
GxSilentTrnSdt entity = (GxSilentTrnSdt)Activator.CreateInstance(_worker.GetType(), new Object[] { _gxContext });
46-
var entity_interface = MakeRestType(entity, false);
46+
object entity_interface = MakeRestType(entity, false);
4747
entity_interface = ReadRequestBodySDTObj(entity_interface.GetType());
4848

49-
var worker_interface = MakeRestType(_worker, false);
49+
object worker_interface = MakeRestType(_worker, false);
5050

5151
worker_interface.GetType().GetMethod("CopyFrom").Invoke(worker_interface, new object[] { entity_interface });
5252
if (gxcheck)
@@ -249,7 +249,7 @@ private object ReadRequestBodySDTObj(Type type)
249249
{
250250
using (var reader = new StreamReader(_httpContext.Request.Body))
251251
{
252-
var sdtData = reader.ReadToEnd();
252+
string sdtData = reader.ReadToEnd();
253253
using (MemoryStream stream = new MemoryStream(Encoding.UTF8.GetBytes(sdtData)))
254254
{
255255
DataContractJsonSerializer serializer = new DataContractJsonSerializer(type);

dotnet/src/dotnetcore/GxClasses.Web/Middleware/GXRouting.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,10 @@
1515
using GeneXus.Http;
1616
using GeneXus.HttpHandlerFactory;
1717
using GeneXus.Metadata;
18-
using GeneXus.Procedure;
1918
using GeneXus.Utils;
20-
using log4net;
2119
using Microsoft.AspNetCore.Http;
2220
using Microsoft.AspNetCore.Routing;
2321
using Microsoft.Extensions.DependencyInjection;
24-
using Microsoft.Net.Http.Headers;
2522

2623
namespace GxClasses.Web.Middleware
2724
{

dotnet/src/dotnetcore/GxClasses.Web/Middleware/HandlerFactory.cs

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
using System;
2+
using System.Collections.Generic;
3+
using System.IO;
4+
using System.Net;
25
using System.Reflection;
6+
using System.Threading.Tasks;
7+
using GeneXus.Application;
38
using GeneXus.Configuration;
4-
using log4net;
9+
using GeneXus.Http;
10+
using GeneXus.Mime;
511
using GeneXus.Utils;
612
using Microsoft.AspNetCore.Http;
7-
using System.Threading.Tasks;
8-
using Microsoft.Extensions.Options;
9-
using System.Net;
10-
using GeneXus.Mime;
11-
using GeneXus.Http;
12-
using System.Collections.Generic;
13-
using GeneXus.Application;
14-
using System.IO;
1513

1614
namespace GeneXus.HttpHandlerFactory
1715
{

dotnet/src/dotnetcore/GxClasses.Web/Notifications/WebSocket/WSHandler.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Net.WebSockets;
5+
using System.Text;
6+
using System.Threading;
7+
using System.Threading.Tasks;
18
using GeneXus.Configuration;
29
using GeneXus.Metadata;
310
using GeneXus.Notifications.WebSocket;
@@ -9,14 +16,7 @@
916
#else
1017
using Jayrock.Json;
1118
#endif
12-
using log4net;
13-
using System;
14-
using System.Collections.Generic;
15-
using System.Linq;
16-
using System.Net.WebSockets;
17-
using System.Text;
18-
using System.Threading;
19-
using System.Threading.Tasks;
19+
2020

2121
namespace GeneXus.Http.WebSocket
2222
{

dotnet/src/dotnetcore/GxClasses/Helpers/GXGeographyCore.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
using Jayrock.Json;
1010
#endif
1111
using GeographicLib;
12-
using log4net;
1312
using NetTopologySuite.Geometries;
1413
using NetTopologySuite.IO;
1514

dotnet/src/dotnetcore/GxClasses/Services/OpenTelemetry/OpenTelemetryService.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using GxClasses.Helpers;
3-
using log4net;
43

54
namespace GeneXus.Services.OpenTelemetry
65
{

dotnet/src/dotnetcore/GxClasses/Services/ServiceSettings.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using GeneXus.Encryption;
3-
using log4net;
43

54
namespace GeneXus.Services.Common
65
{

dotnet/src/dotnetcore/GxClasses/Services/Session/GXSessionFactory.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using GeneXus.Data.ADO;
66
using GeneXus.Encryption;
77
using GxClasses.Helpers;
8-
using log4net;
98

109
namespace GeneXus.Services
1110
{

dotnet/src/dotnetcore/GxNetCoreStartup/CsrfHelper.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using System.Threading.Tasks;
55
using GeneXus.Configuration;
66
using GeneXus.Http;
7-
using log4net;
87
using Microsoft.AspNetCore.Antiforgery;
98
using Microsoft.AspNetCore.Http;
109
namespace GeneXus.Application

dotnet/src/dotnetcore/GxNetCoreStartup/Startup.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
using System.Reflection;
66
using System.Runtime.InteropServices;
77
using System.Threading.Tasks;
8-
using Azure.Identity;
9-
using Azure.Monitor.OpenTelemetry.Exporter;
108
using GeneXus.Configuration;
119
using GeneXus.Http;
1210
using GeneXus.HttpHandlerFactory;
@@ -31,8 +29,6 @@
3129
using Microsoft.Extensions.DependencyInjection;
3230
using Microsoft.Extensions.FileProviders;
3331
using Microsoft.Extensions.Logging;
34-
using OpenTelemetry.Logs;
35-
using OpenTelemetry.Resources;
3632
using StackExchange.Redis;
3733

3834
namespace GeneXus.Application

0 commit comments

Comments
 (0)