From a97a90a75c81c2ece2393231ea8484327a42de13 Mon Sep 17 00:00:00 2001 From: claudiamurialdo <33756655+claudiamurialdo@users.noreply.github.com> Date: Fri, 10 Nov 2023 16:14:34 -0300 Subject: [PATCH] Remove and organize using directives. (#903) Eliminate any unnecessary using statements, specifically the log4net ones that complement PR #871. --- .../Middleware/GXBCRestService.cs | 10 ++++---- .../GxClasses.Web/Middleware/GXRouting.cs | 3 --- .../Middleware/HandlerFactory.cs | 16 ++++++------ .../Notifications/WebSocket/WSHandler.cs | 15 ++++++----- .../GxClasses/Helpers/GXGeographyCore.cs | 1 - .../OpenTelemetry/OpenTelemetryService.cs | 1 - .../GxClasses/Services/ServiceSettings.cs | 1 - .../Services/Session/GXSessionFactory.cs | 1 - .../dotnetcore/GxNetCoreStartup/CsrfHelper.cs | 1 - .../dotnetcore/GxNetCoreStartup/Startup.cs | 4 --- .../GxPdfReportsCS/PDFReportItext8.cs | 2 -- .../Messaging/GXAmazonSQS/AWSQueue.cs | 5 ++-- .../GXAzureEventGrid/AzureEventGrid.cs | 1 - .../Messaging/GXAzureQueue/AzureQueue.cs | 2 -- .../GXAzureServiceBus/AzureServiceBus.cs | 1 - .../GXEventRouter/EventRouterBase.cs | 1 - .../GXEventRouter/EventRouterProvider.cs | 1 - .../GXEventRouter/EventRouterProviderBase.cs | 2 -- .../GXMessageBroker/MessageBrokerBase.cs | 1 - .../GXMessageBroker/MessageBrokerProvider.cs | 1 - .../Messaging/GXMessageBroker/MessageQueue.cs | 1 - .../GXMessageBroker/ServiceSettings.cs | 1 - .../Messaging/GXQueue/MessageQueueProvider.cs | 1 - .../Providers/Messaging/GXQueue/QueueBase.cs | 5 ---- .../Messaging/GXQueue/SimpleMessageQueue.cs | 3 --- .../LightstepProvider.cs | 5 +--- .../GxClasses.Win/Process/CommandLine.cs | 3 +-- .../Configuration/ExternalStorage.cs | 1 - .../Configuration/LogConfiguration.cs | 3 +-- .../GxClasses/Core/GXApplication.cs | 2 -- .../dotnetframework/GxClasses/Core/GXUtils.cs | 1 - .../GxClasses/Core/GXUtilsCommon.cs | 3 --- .../GxClasses/Core/Web/HttpAjaxContext.cs | 3 --- .../GxClasses/Cryptography/GXHashing.cs | 6 +---- .../GxClasses/Data/GXDataADO.cs | 21 +++++++--------- .../GxClasses/Data/GXDataDb2.cs | 1 - .../GxClasses/Data/GXDataDb2400.cs | 1 - .../GxClasses/Data/GXDataHana.cs | 1 - .../GxClasses/Data/GXDataInformix.cs | 8 +++--- .../GxClasses/Data/GXDataMysqlConnector.cs | 2 -- .../GxClasses/Data/GXDataMysqlDriverCS.cs | 9 +++---- .../GxClasses/Data/GXDataNTier.cs | 11 ++++---- .../GxClasses/Data/GXDataNTierADO.cs | 15 ++++++----- .../GxClasses/Data/GXDataNTierService.cs | 17 +++---------- .../GxClasses/Data/GXDataOracle.cs | 1 - .../GxClasses/Data/GXDataPostgreSQL.cs | 1 - .../GxClasses/Data/GXDataSqlite.cs | 1 - .../GxClasses/Diagnostics/GXDebugManager.cs | 3 +-- .../GxClasses/Dialog/IDialog.cs | 5 ++-- .../GxClasses/Dialog/IProcess.cs | 1 - .../GxClasses/Domain/ExpressionEvaluator.cs | 6 ++--- .../GxClasses/Domain/GXFileIO.cs | 1 - .../GxClasses/Domain/GXGeolocation.cs | 4 +-- .../GxClasses/Domain/GXLDAP.cs | 1 - .../GxClasses/Domain/GXXmlReadWrite.cs | 10 +++----- .../GxClasses/Domain/GxCollections.cs | 25 +++++++++---------- .../GxClasses/Domain/GxGenericCollections.cs | 8 +++--- .../GxClasses/Domain/GxHttpClient.cs | 1 - .../GxClasses/Domain/GxMessaging.cs | 1 - .../GxClasses/Domain/GxSession.cs | 5 +--- .../GxClasses/Domain/SD/SDApis.cs | 6 +---- .../GxClasses/Helpers/GXFileWatcher.cs | 2 -- .../GxClasses/Helpers/GXMetadata.cs | 1 - .../GxClasses/Helpers/GXRes.cs | 1 - .../GxClasses/Helpers/GXRestUtils.cs | 1 - .../GxClasses/Helpers/GXUtilsGeospatial.cs | 12 ++++----- .../GxClasses/Helpers/HttpHelper.cs | 1 - .../GxClasses/Helpers/JSONHelper.cs | 3 --- .../GxClasses/Helpers/ThemeHelper.cs | 5 ++-- .../GxClasses/Management/GXManagement.cs | 6 ++--- .../GxClasses/Management/GXPerformance.cs | 11 ++++---- .../GxClasses/Middleware/GXHttp.cs | 3 --- .../GxClasses/Middleware/GXHttpModules.cs | 21 ++++++++-------- .../GxClasses/Middleware/GXHttpServices.cs | 10 -------- .../GxClasses/Middleware/HandlerFactory.cs | 17 ++++++------- .../GxClasses/Model/GXBaseObject.cs | 1 - .../GxClasses/Model/GXSilentTrn.cs | 2 -- .../GxClasses/Model/GXWebProcedure.cs | 5 ---- .../GxClasses/Model/GxMockProvider.cs | 1 - .../dotnetframework/GxClasses/Model/gxproc.cs | 1 - .../WebSocket/GXWebSocketFactory.cs | 1 - .../GxClasses/Printer/GxPrinter.cs | 22 ++++++++-------- .../GxClasses/Reorg/GXReorg.cs | 17 ++++++------- .../GxClasses/Security/GxSecurityProvider.cs | 7 ++---- .../GxClasses/Security/WebSecurity.cs | 3 +-- .../GxClasses/Services/Caching/GxCache.cs | 3 +-- .../GxClasses/Services/GXRestServices.cs | 4 --- .../GxClasses/Services/GxRestWrapper.cs | 2 -- .../Services/Storage/ExternalProviderBase.cs | 1 - .../GxClasses/View/GXWebControls.cs | 5 +--- .../GXDataInitialization.cs | 14 ++++------- .../dotnetframework/GxExcel/GxExcelEPPlus.cs | 3 +-- .../src/dotnetframework/GxExcel/GxExcelI.cs | 8 +++--- .../dotnetframework/GxExcel/GxExcelLite.cs | 4 +-- .../GxMail/Exchange/ExchangeSession.cs | 5 ++-- .../GxMail/Exchange/Service.cs | 3 +-- .../GxMail/Exchange/TraceListener.cs | 7 +----- .../dotnetframework/GxMail/GXMailSession.cs | 3 +-- .../dotnetframework/GxMail/GXPOP3Session.cs | 5 ++-- .../dotnetframework/GxMail/GXSMTPSession.cs | 8 +++--- .../src/dotnetframework/GxMail/MAPISession.cs | 3 +-- .../src/dotnetframework/GxMail/MailMessage.cs | 7 +++--- .../GxMail/Mentalis/RFC822EndReader.cs | 1 - .../dotnetframework/GxMail/OutlookSession.cs | 6 ++--- .../src/dotnetframework/GxMail/POP3Session.cs | 12 ++++----- .../GxMail/POP3SessionOpenPop.cs | 13 +++++----- .../src/dotnetframework/GxMail/Pop3MailKit.cs | 7 +++--- .../dotnetframework/GxMail/Pop3SessionBase.cs | 1 - .../dotnetframework/GxMail/SMTP/SmtpHelper.cs | 4 +-- .../dotnetframework/GxMail/SMTPMailClient.cs | 7 +++--- .../src/dotnetframework/GxMail/SMTPMailKit.cs | 5 ++-- .../src/dotnetframework/GxMail/SMTPSession.cs | 15 ++++++----- .../GxOffice/ExcelSpreadsheetGXWrapper.cs | 1 - .../GxOffice/poi/xssf/ExcelCells.cs | 1 - .../GxPdfReportsCS/PDFReportCommon.cs | 25 ++++++++----------- .../GxPdfReportsCS/PDFReportItext4.cs | 1 - .../GxPdfReportsCS/PdfReportInterface.cs | 1 - .../GxSearch/DocumentHandler.cs | 16 +++++------- .../src/dotnetframework/GxSearch/Indexer.cs | 17 +++---------- .../src/dotnetframework/GxSearch/Searcher.cs | 14 +++-------- .../src/dotnetframework/GxSearch/Settings.cs | 2 -- .../dotnetframework/GxSearch/SpellChecker.cs | 3 --- .../dotnetframework/GxWebSocket/WSHandler.cs | 1 - .../StoreManager/Store/StoreManager.cs | 8 ++---- .../Providers/Cache/GxRedis/GxRedis.cs | 10 ++------ .../Storage/GXAmazonS3/ExternalProviderS3.cs | 10 +++----- .../HttpHandler/GXHttpAzureContextAccessor.cs | 2 -- 127 files changed, 222 insertions(+), 474 deletions(-) diff --git a/dotnet/src/dotnetcore/GxClasses.Web/Middleware/GXBCRestService.cs b/dotnet/src/dotnetcore/GxClasses.Web/Middleware/GXBCRestService.cs index 4b603f65b..e93c59ac1 100644 --- a/dotnet/src/dotnetcore/GxClasses.Web/Middleware/GXBCRestService.cs +++ b/dotnet/src/dotnetcore/GxClasses.Web/Middleware/GXBCRestService.cs @@ -43,10 +43,10 @@ public override Task Post() bool gxinsertorupdate = IsRestParameter(INSERT_OR_UPDATE_PARAMETER); GxSilentTrnSdt entity = (GxSilentTrnSdt)Activator.CreateInstance(_worker.GetType(), new Object[] { _gxContext }); - var entity_interface = MakeRestType(entity, false); + object entity_interface = MakeRestType(entity, false); entity_interface = ReadRequestBodySDTObj(entity_interface.GetType()); - var worker_interface = MakeRestType(_worker, false); + object worker_interface = MakeRestType(_worker, false); worker_interface.GetType().GetMethod("CopyFrom").Invoke(worker_interface, new object[] { entity_interface }); if (gxcheck) @@ -191,12 +191,12 @@ public override Task Put(object parameters) { bool gxcheck = IsRestParameter(CHECK_PARAMETER); GxSilentTrnSdt entity = (GxSilentTrnSdt)Activator.CreateInstance(_worker.GetType(), new Object[] { _gxContext }); - var entity_interface = MakeRestType(entity, false); + object entity_interface = MakeRestType(entity, false); entity_interface = ReadRequestBodySDTObj(entity_interface.GetType()); string entityHash = entity_interface.GetType().GetProperty("Hash").GetValue(entity_interface) as string; ReflectionHelper.CallBCMethod(_worker, LOAD_METHOD, key); - var worker_interface = MakeRestType(_worker, false); + object worker_interface = MakeRestType(_worker, false); string currentHash = worker_interface.GetType().GetProperty("Hash").GetValue(worker_interface) as string; if (entityHash == currentHash) { @@ -249,7 +249,7 @@ private object ReadRequestBodySDTObj(Type type) { using (var reader = new StreamReader(_httpContext.Request.Body)) { - var sdtData = reader.ReadToEnd(); + string sdtData = reader.ReadToEnd(); using (MemoryStream stream = new MemoryStream(Encoding.UTF8.GetBytes(sdtData))) { DataContractJsonSerializer serializer = new DataContractJsonSerializer(type); diff --git a/dotnet/src/dotnetcore/GxClasses.Web/Middleware/GXRouting.cs b/dotnet/src/dotnetcore/GxClasses.Web/Middleware/GXRouting.cs index f6d88c57c..abdb7022f 100644 --- a/dotnet/src/dotnetcore/GxClasses.Web/Middleware/GXRouting.cs +++ b/dotnet/src/dotnetcore/GxClasses.Web/Middleware/GXRouting.cs @@ -15,13 +15,10 @@ using GeneXus.Http; using GeneXus.HttpHandlerFactory; using GeneXus.Metadata; -using GeneXus.Procedure; using GeneXus.Utils; -using log4net; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.DependencyInjection; -using Microsoft.Net.Http.Headers; namespace GxClasses.Web.Middleware { diff --git a/dotnet/src/dotnetcore/GxClasses.Web/Middleware/HandlerFactory.cs b/dotnet/src/dotnetcore/GxClasses.Web/Middleware/HandlerFactory.cs index 5296ca8dd..d9eb0b14a 100644 --- a/dotnet/src/dotnetcore/GxClasses.Web/Middleware/HandlerFactory.cs +++ b/dotnet/src/dotnetcore/GxClasses.Web/Middleware/HandlerFactory.cs @@ -1,17 +1,15 @@ using System; +using System.Collections.Generic; +using System.IO; +using System.Net; using System.Reflection; +using System.Threading.Tasks; +using GeneXus.Application; using GeneXus.Configuration; -using log4net; +using GeneXus.Http; +using GeneXus.Mime; using GeneXus.Utils; using Microsoft.AspNetCore.Http; -using System.Threading.Tasks; -using Microsoft.Extensions.Options; -using System.Net; -using GeneXus.Mime; -using GeneXus.Http; -using System.Collections.Generic; -using GeneXus.Application; -using System.IO; namespace GeneXus.HttpHandlerFactory { diff --git a/dotnet/src/dotnetcore/GxClasses.Web/Notifications/WebSocket/WSHandler.cs b/dotnet/src/dotnetcore/GxClasses.Web/Notifications/WebSocket/WSHandler.cs index 92f15fc43..eea674266 100644 --- a/dotnet/src/dotnetcore/GxClasses.Web/Notifications/WebSocket/WSHandler.cs +++ b/dotnet/src/dotnetcore/GxClasses.Web/Notifications/WebSocket/WSHandler.cs @@ -1,11 +1,3 @@ -using GeneXus.Configuration; -using GeneXus.Metadata; -using GeneXus.Notifications.WebSocket; -using GeneXus.Procedure; -using GeneXus.Services; -using GeneXus.Utils; -using Jayrock.Json; -using log4net; using System; using System.Collections.Generic; using System.Linq; @@ -13,6 +5,13 @@ using System.Text; using System.Threading; using System.Threading.Tasks; +using GeneXus.Configuration; +using GeneXus.Metadata; +using GeneXus.Notifications.WebSocket; +using GeneXus.Procedure; +using GeneXus.Services; +using GeneXus.Utils; +using Jayrock.Json; namespace GeneXus.Http.WebSocket { diff --git a/dotnet/src/dotnetcore/GxClasses/Helpers/GXGeographyCore.cs b/dotnet/src/dotnetcore/GxClasses/Helpers/GXGeographyCore.cs index e33b0802d..80d80a9e7 100644 --- a/dotnet/src/dotnetcore/GxClasses/Helpers/GXGeographyCore.cs +++ b/dotnet/src/dotnetcore/GxClasses/Helpers/GXGeographyCore.cs @@ -4,7 +4,6 @@ using System.Runtime.Serialization; using Jayrock.Json; using GeographicLib; -using log4net; using NetTopologySuite.Geometries; using NetTopologySuite.IO; diff --git a/dotnet/src/dotnetcore/GxClasses/Services/OpenTelemetry/OpenTelemetryService.cs b/dotnet/src/dotnetcore/GxClasses/Services/OpenTelemetry/OpenTelemetryService.cs index 9e17ad7ce..3c8cacf39 100644 --- a/dotnet/src/dotnetcore/GxClasses/Services/OpenTelemetry/OpenTelemetryService.cs +++ b/dotnet/src/dotnetcore/GxClasses/Services/OpenTelemetry/OpenTelemetryService.cs @@ -1,6 +1,5 @@ using System; using GxClasses.Helpers; -using log4net; namespace GeneXus.Services.OpenTelemetry { diff --git a/dotnet/src/dotnetcore/GxClasses/Services/ServiceSettings.cs b/dotnet/src/dotnetcore/GxClasses/Services/ServiceSettings.cs index 05c398a7e..a9ab19878 100644 --- a/dotnet/src/dotnetcore/GxClasses/Services/ServiceSettings.cs +++ b/dotnet/src/dotnetcore/GxClasses/Services/ServiceSettings.cs @@ -1,6 +1,5 @@ using System; using GeneXus.Encryption; -using log4net; namespace GeneXus.Services.Common { diff --git a/dotnet/src/dotnetcore/GxClasses/Services/Session/GXSessionFactory.cs b/dotnet/src/dotnetcore/GxClasses/Services/Session/GXSessionFactory.cs index 022d21373..79a8b5827 100644 --- a/dotnet/src/dotnetcore/GxClasses/Services/Session/GXSessionFactory.cs +++ b/dotnet/src/dotnetcore/GxClasses/Services/Session/GXSessionFactory.cs @@ -5,7 +5,6 @@ using GeneXus.Data.ADO; using GeneXus.Encryption; using GxClasses.Helpers; -using log4net; namespace GeneXus.Services { diff --git a/dotnet/src/dotnetcore/GxNetCoreStartup/CsrfHelper.cs b/dotnet/src/dotnetcore/GxNetCoreStartup/CsrfHelper.cs index 4f6c15b71..2306f028e 100644 --- a/dotnet/src/dotnetcore/GxNetCoreStartup/CsrfHelper.cs +++ b/dotnet/src/dotnetcore/GxNetCoreStartup/CsrfHelper.cs @@ -4,7 +4,6 @@ using System.Threading.Tasks; using GeneXus.Configuration; using GeneXus.Http; -using log4net; using Microsoft.AspNetCore.Antiforgery; using Microsoft.AspNetCore.Http; namespace GeneXus.Application diff --git a/dotnet/src/dotnetcore/GxNetCoreStartup/Startup.cs b/dotnet/src/dotnetcore/GxNetCoreStartup/Startup.cs index fff6d6c6b..9a0116a6f 100644 --- a/dotnet/src/dotnetcore/GxNetCoreStartup/Startup.cs +++ b/dotnet/src/dotnetcore/GxNetCoreStartup/Startup.cs @@ -3,8 +3,6 @@ using System.IO; using System.Net; using System.Threading.Tasks; -using Azure.Identity; -using Azure.Monitor.OpenTelemetry.Exporter; using GeneXus.Configuration; using GeneXus.Http; using GeneXus.HttpHandlerFactory; @@ -29,8 +27,6 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.FileProviders; using Microsoft.Extensions.Logging; -using OpenTelemetry.Logs; -using OpenTelemetry.Resources; using StackExchange.Redis; namespace GeneXus.Application diff --git a/dotnet/src/dotnetcore/GxPdfReportsCS/PDFReportItext8.cs b/dotnet/src/dotnetcore/GxPdfReportsCS/PDFReportItext8.cs index 04cda142a..bad1d5e68 100644 --- a/dotnet/src/dotnetcore/GxPdfReportsCS/PDFReportItext8.cs +++ b/dotnet/src/dotnetcore/GxPdfReportsCS/PDFReportItext8.cs @@ -24,9 +24,7 @@ using iText.Layout.Font; using iText.Layout.Layout; using iText.Layout.Properties; -using iText.Layout.Renderer; using iText.Layout.Splitting; -using log4net; using Path = System.IO.Path; namespace GeneXus.Printer diff --git a/dotnet/src/dotnetcore/Providers/Messaging/GXAmazonSQS/AWSQueue.cs b/dotnet/src/dotnetcore/Providers/Messaging/GXAmazonSQS/AWSQueue.cs index 071ea69fc..47f31e184 100644 --- a/dotnet/src/dotnetcore/Providers/Messaging/GXAmazonSQS/AWSQueue.cs +++ b/dotnet/src/dotnetcore/Providers/Messaging/GXAmazonSQS/AWSQueue.cs @@ -1,5 +1,7 @@ using System; using System.Collections.Generic; +using System.Reflection; +using System.Threading.Tasks; using Amazon; using Amazon.Runtime; using Amazon.SQS; @@ -7,9 +9,6 @@ using GeneXus.Messaging.Common; using GeneXus.Services; using GeneXus.Utils; -using log4net; -using System.Threading.Tasks; -using System.Reflection; namespace GeneXus.Messaging.Queue { diff --git a/dotnet/src/dotnetcore/Providers/Messaging/GXAzureEventGrid/AzureEventGrid.cs b/dotnet/src/dotnetcore/Providers/Messaging/GXAzureEventGrid/AzureEventGrid.cs index f69a69466..821a7242a 100644 --- a/dotnet/src/dotnetcore/Providers/Messaging/GXAzureEventGrid/AzureEventGrid.cs +++ b/dotnet/src/dotnetcore/Providers/Messaging/GXAzureEventGrid/AzureEventGrid.cs @@ -10,7 +10,6 @@ using GeneXus.Messaging.Common; using GeneXus.Services; using GeneXus.Utils; -using log4net; namespace GeneXus.Messaging.GXAzureEventGrid { diff --git a/dotnet/src/dotnetcore/Providers/Messaging/GXAzureQueue/AzureQueue.cs b/dotnet/src/dotnetcore/Providers/Messaging/GXAzureQueue/AzureQueue.cs index 519dce15a..ac8fb4c69 100644 --- a/dotnet/src/dotnetcore/Providers/Messaging/GXAzureQueue/AzureQueue.cs +++ b/dotnet/src/dotnetcore/Providers/Messaging/GXAzureQueue/AzureQueue.cs @@ -7,8 +7,6 @@ using GeneXus.Messaging.Common; using GeneXus.Services; using GeneXus.Utils; -using log4net; -using Microsoft.Extensions.Logging; namespace GeneXus.Messaging.Queue { diff --git a/dotnet/src/dotnetcore/Providers/Messaging/GXAzureServiceBus/AzureServiceBus.cs b/dotnet/src/dotnetcore/Providers/Messaging/GXAzureServiceBus/AzureServiceBus.cs index 92e06e744..7981f96db 100644 --- a/dotnet/src/dotnetcore/Providers/Messaging/GXAzureServiceBus/AzureServiceBus.cs +++ b/dotnet/src/dotnetcore/Providers/Messaging/GXAzureServiceBus/AzureServiceBus.cs @@ -9,7 +9,6 @@ using GeneXus.Messaging.Common; using GeneXus.Services; using GeneXus.Utils; -using log4net; namespace GeneXus.Messaging.GXAzureServiceBus { diff --git a/dotnet/src/dotnetcore/Providers/Messaging/GXEventRouter/EventRouterBase.cs b/dotnet/src/dotnetcore/Providers/Messaging/GXEventRouter/EventRouterBase.cs index 5b9e802fa..fb4d42cf5 100644 --- a/dotnet/src/dotnetcore/Providers/Messaging/GXEventRouter/EventRouterBase.cs +++ b/dotnet/src/dotnetcore/Providers/Messaging/GXEventRouter/EventRouterBase.cs @@ -1,6 +1,5 @@ using System; using GeneXus.Services; -using log4net; namespace GeneXus.Messaging.Common { diff --git a/dotnet/src/dotnetcore/Providers/Messaging/GXEventRouter/EventRouterProvider.cs b/dotnet/src/dotnetcore/Providers/Messaging/GXEventRouter/EventRouterProvider.cs index f635107ec..a9cf3b0e7 100644 --- a/dotnet/src/dotnetcore/Providers/Messaging/GXEventRouter/EventRouterProvider.cs +++ b/dotnet/src/dotnetcore/Providers/Messaging/GXEventRouter/EventRouterProvider.cs @@ -4,7 +4,6 @@ using GeneXus.Services; using GeneXus.Utils; using GxClasses.Helpers; -using log4net; namespace GeneXus.Messaging.Common { diff --git a/dotnet/src/dotnetcore/Providers/Messaging/GXEventRouter/EventRouterProviderBase.cs b/dotnet/src/dotnetcore/Providers/Messaging/GXEventRouter/EventRouterProviderBase.cs index 7514c6b04..25acbc4cf 100644 --- a/dotnet/src/dotnetcore/Providers/Messaging/GXEventRouter/EventRouterProviderBase.cs +++ b/dotnet/src/dotnetcore/Providers/Messaging/GXEventRouter/EventRouterProviderBase.cs @@ -1,12 +1,10 @@ using System; using System.Collections; using System.Collections.Generic; -using System.IO; using System.Reflection; using GeneXus.Services; using GeneXus.Utils; using GxClasses.Helpers; -using log4net; namespace GeneXus.Messaging.Common { diff --git a/dotnet/src/dotnetcore/Providers/Messaging/GXMessageBroker/MessageBrokerBase.cs b/dotnet/src/dotnetcore/Providers/Messaging/GXMessageBroker/MessageBrokerBase.cs index 7fbd6a18d..de6c1bece 100644 --- a/dotnet/src/dotnetcore/Providers/Messaging/GXMessageBroker/MessageBrokerBase.cs +++ b/dotnet/src/dotnetcore/Providers/Messaging/GXMessageBroker/MessageBrokerBase.cs @@ -1,6 +1,5 @@ using System; using GeneXus.Services; -using log4net; namespace GeneXus.Messaging.Common { diff --git a/dotnet/src/dotnetcore/Providers/Messaging/GXMessageBroker/MessageBrokerProvider.cs b/dotnet/src/dotnetcore/Providers/Messaging/GXMessageBroker/MessageBrokerProvider.cs index 433a9a211..69179faa5 100644 --- a/dotnet/src/dotnetcore/Providers/Messaging/GXMessageBroker/MessageBrokerProvider.cs +++ b/dotnet/src/dotnetcore/Providers/Messaging/GXMessageBroker/MessageBrokerProvider.cs @@ -4,7 +4,6 @@ using GeneXus.Services; using GeneXus.Utils; using GxClasses.Helpers; -using log4net; namespace GeneXus.Messaging.Common { diff --git a/dotnet/src/dotnetcore/Providers/Messaging/GXMessageBroker/MessageQueue.cs b/dotnet/src/dotnetcore/Providers/Messaging/GXMessageBroker/MessageQueue.cs index 2044de050..13f6c7702 100644 --- a/dotnet/src/dotnetcore/Providers/Messaging/GXMessageBroker/MessageQueue.cs +++ b/dotnet/src/dotnetcore/Providers/Messaging/GXMessageBroker/MessageQueue.cs @@ -6,7 +6,6 @@ using GeneXus.Services; using GeneXus.Utils; using GxClasses.Helpers; -using log4net; namespace GeneXus.Messaging.Common { diff --git a/dotnet/src/dotnetcore/Providers/Messaging/GXMessageBroker/ServiceSettings.cs b/dotnet/src/dotnetcore/Providers/Messaging/GXMessageBroker/ServiceSettings.cs index d29c55ab0..f718b6c4e 100644 --- a/dotnet/src/dotnetcore/Providers/Messaging/GXMessageBroker/ServiceSettings.cs +++ b/dotnet/src/dotnetcore/Providers/Messaging/GXMessageBroker/ServiceSettings.cs @@ -1,7 +1,6 @@ using System; using GeneXus.Encryption; using GeneXus.Services; -using log4net; namespace GeneXus.Messaging.Common { diff --git a/dotnet/src/dotnetcore/Providers/Messaging/GXQueue/MessageQueueProvider.cs b/dotnet/src/dotnetcore/Providers/Messaging/GXQueue/MessageQueueProvider.cs index 93a4ba066..cf6077c65 100644 --- a/dotnet/src/dotnetcore/Providers/Messaging/GXQueue/MessageQueueProvider.cs +++ b/dotnet/src/dotnetcore/Providers/Messaging/GXQueue/MessageQueueProvider.cs @@ -4,7 +4,6 @@ using GeneXus.Services; using GeneXus.Utils; using GxClasses.Helpers; -using log4net; namespace GeneXus.Messaging.Common { diff --git a/dotnet/src/dotnetcore/Providers/Messaging/GXQueue/QueueBase.cs b/dotnet/src/dotnetcore/Providers/Messaging/GXQueue/QueueBase.cs index b43c47b1b..6d0635494 100644 --- a/dotnet/src/dotnetcore/Providers/Messaging/GXQueue/QueueBase.cs +++ b/dotnet/src/dotnetcore/Providers/Messaging/GXQueue/QueueBase.cs @@ -1,10 +1,5 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using GeneXus.Services; -using log4net; namespace GeneXus.Messaging.Common { diff --git a/dotnet/src/dotnetcore/Providers/Messaging/GXQueue/SimpleMessageQueue.cs b/dotnet/src/dotnetcore/Providers/Messaging/GXQueue/SimpleMessageQueue.cs index dd5d35031..18739ffda 100644 --- a/dotnet/src/dotnetcore/Providers/Messaging/GXQueue/SimpleMessageQueue.cs +++ b/dotnet/src/dotnetcore/Providers/Messaging/GXQueue/SimpleMessageQueue.cs @@ -1,14 +1,11 @@ using System; using System.Collections; using System.Collections.Generic; -using System.IO; using System.Reflection; using System.Text; -using GeneXus.Application; using GeneXus.Services; using GeneXus.Utils; using GxClasses.Helpers; -using log4net; namespace GeneXus.Messaging.Common { diff --git a/dotnet/src/dotnetcore/Providers/OpenTelemetry/OpenTelemetryLightStep/LightstepProvider.cs b/dotnet/src/dotnetcore/Providers/OpenTelemetry/OpenTelemetryLightStep/LightstepProvider.cs index 8b4f5195a..8d251d1c8 100644 --- a/dotnet/src/dotnetcore/Providers/OpenTelemetry/OpenTelemetryLightStep/LightstepProvider.cs +++ b/dotnet/src/dotnetcore/Providers/OpenTelemetry/OpenTelemetryLightStep/LightstepProvider.cs @@ -1,12 +1,9 @@ using System; +using GeneXus.Services; using GeneXus.Services.OpenTelemetry; using Microsoft.Extensions.DependencyInjection; -using OpenTelemetry; using OpenTelemetry.Trace; -using OpenTelemetry.Resources; -using log4net; -using GeneXus.Services; namespace GeneXus.OpenTelemetry.Lightstep { diff --git a/dotnet/src/dotnetframework/GxClasses.Win/Process/CommandLine.cs b/dotnet/src/dotnetframework/GxClasses.Win/Process/CommandLine.cs index fa2a5a55a..b43620759 100644 --- a/dotnet/src/dotnetframework/GxClasses.Win/Process/CommandLine.cs +++ b/dotnet/src/dotnetframework/GxClasses.Win/Process/CommandLine.cs @@ -1,8 +1,7 @@ -using GeneXus.Application; -using log4net; using System; using System.Diagnostics; using System.IO; +using GeneXus.Application; namespace GeneXus.Utils { diff --git a/dotnet/src/dotnetframework/GxClasses/Configuration/ExternalStorage.cs b/dotnet/src/dotnetframework/GxClasses/Configuration/ExternalStorage.cs index 41112ccd6..d30bdc160 100644 --- a/dotnet/src/dotnetframework/GxClasses/Configuration/ExternalStorage.cs +++ b/dotnet/src/dotnetframework/GxClasses/Configuration/ExternalStorage.cs @@ -3,7 +3,6 @@ using GeneXus.Attributes; using GeneXus.Utils; using GeneXus.Encryption; -using log4net; #if NETCORE using GxClasses.Helpers; #endif diff --git a/dotnet/src/dotnetframework/GxClasses/Configuration/LogConfiguration.cs b/dotnet/src/dotnetframework/GxClasses/Configuration/LogConfiguration.cs index 6a047d681..69428b857 100644 --- a/dotnet/src/dotnetframework/GxClasses/Configuration/LogConfiguration.cs +++ b/dotnet/src/dotnetframework/GxClasses/Configuration/LogConfiguration.cs @@ -1,11 +1,10 @@ using System; +using System.Linq; using log4net; using log4net.Appender; using log4net.Core; using log4net.Repository; using log4net.Repository.Hierarchy; -using System.Linq; -using log4net.Layout; namespace GeneXus.Configuration { diff --git a/dotnet/src/dotnetframework/GxClasses/Core/GXApplication.cs b/dotnet/src/dotnetframework/GxClasses/Core/GXApplication.cs index 06c6000b2..08d94ef70 100644 --- a/dotnet/src/dotnetframework/GxClasses/Core/GXApplication.cs +++ b/dotnet/src/dotnetframework/GxClasses/Core/GXApplication.cs @@ -21,7 +21,6 @@ namespace GeneXus.Application #endif using GeneXus.Configuration; using GeneXus.Metadata; - using log4net; using Jayrock.Json; using GeneXus.Http; using System.Collections.Specialized; @@ -44,7 +43,6 @@ namespace GeneXus.Application using Microsoft.AspNetCore.Http.Features; #endif using NodaTime; - using NodaTime.TimeZones; using System.Threading; using System.Security.Claims; using System.Security; diff --git a/dotnet/src/dotnetframework/GxClasses/Core/GXUtils.cs b/dotnet/src/dotnetframework/GxClasses/Core/GXUtils.cs index c5c616f58..db1162f17 100644 --- a/dotnet/src/dotnetframework/GxClasses/Core/GXUtils.cs +++ b/dotnet/src/dotnetframework/GxClasses/Core/GXUtils.cs @@ -11,7 +11,6 @@ namespace GeneXus.Utils using Cache; using GeneXus.Application; using GeneXus.Services; - using log4net; using TZ4Net; public class GxMail diff --git a/dotnet/src/dotnetframework/GxClasses/Core/GXUtilsCommon.cs b/dotnet/src/dotnetframework/GxClasses/Core/GXUtilsCommon.cs index 6235c5785..d4bb6a16d 100644 --- a/dotnet/src/dotnetframework/GxClasses/Core/GXUtilsCommon.cs +++ b/dotnet/src/dotnetframework/GxClasses/Core/GXUtilsCommon.cs @@ -1,6 +1,5 @@ using GeneXus.Application; using GeneXus.Configuration; -using log4net; using System; using System.Collections; using System.Diagnostics; @@ -20,7 +19,6 @@ using System.Net; #endif using NodaTime; -using NodaTime.TimeZones; using NUglify; using NUglify.Html; using GeneXus.Web.Security; @@ -45,7 +43,6 @@ using GeneXus.Services; using GeneXus.Http; using System.Security; -using System.Threading.Tasks; using System.Drawing.Imaging; using System.Net.Http.Headers; using Image = System.Drawing.Image; diff --git a/dotnet/src/dotnetframework/GxClasses/Core/Web/HttpAjaxContext.cs b/dotnet/src/dotnetframework/GxClasses/Core/Web/HttpAjaxContext.cs index 2180ad8a4..4eebfe44d 100644 --- a/dotnet/src/dotnetframework/GxClasses/Core/Web/HttpAjaxContext.cs +++ b/dotnet/src/dotnetframework/GxClasses/Core/Web/HttpAjaxContext.cs @@ -1,7 +1,6 @@ namespace GeneXus.Http { using System; - using System.IO; using Jayrock.Json; using System.Web; using GeneXus.Application; @@ -17,9 +16,7 @@ namespace GeneXus.Http #else using Microsoft.AspNetCore.Http; #endif - using System.Diagnostics; using GeneXus.Configuration; - using log4net; public interface IHttpAjaxContext { diff --git a/dotnet/src/dotnetframework/GxClasses/Cryptography/GXHashing.cs b/dotnet/src/dotnetframework/GxClasses/Cryptography/GXHashing.cs index 59ee779a7..f3194e0cf 100644 --- a/dotnet/src/dotnetframework/GxClasses/Cryptography/GXHashing.cs +++ b/dotnet/src/dotnetframework/GxClasses/Cryptography/GXHashing.cs @@ -1,11 +1,7 @@ using System; -using System.Collections.Generic; -using System.Linq; using System.Text; -using System.Security.Cryptography; -using log4net; -using GeneXus.Cryptography.Hashing; using GeneXus.Cryptography.CryptoException; +using GeneXus.Cryptography.Hashing; namespace GeneXus.Cryptography { diff --git a/dotnet/src/dotnetframework/GxClasses/Data/GXDataADO.cs b/dotnet/src/dotnetframework/GxClasses/Data/GXDataADO.cs index 4e72f295f..d907f94e7 100644 --- a/dotnet/src/dotnetframework/GxClasses/Data/GXDataADO.cs +++ b/dotnet/src/dotnetframework/GxClasses/Data/GXDataADO.cs @@ -1,26 +1,23 @@ +using System; +using System.Collections; +using System.Collections.Concurrent; +using System.Collections.Generic; +using System.Data; +using System.Data.Common; +using System.IO; +using System.Reflection; +using System.Threading; using GeneXus.Application; using GeneXus.Cache; using GeneXus.Configuration; using GeneXus.Data.NTier.ADO; -using GeneXus.Diagnostics; using GeneXus.Management; using GeneXus.Reorg; using GeneXus.Services; using GeneXus.Utils; using GeneXus.XML; using GxClasses.Helpers; -using log4net; -using log4net.Core; -using System; -using System.Collections; -using System.Collections.Concurrent; -using System.Collections.Generic; -using System.Data; -using System.Data.Common; -using System.IO; -using System.Reflection; -using System.Threading; using TZ4Net; namespace GeneXus.Data.ADO { diff --git a/dotnet/src/dotnetframework/GxClasses/Data/GXDataDb2.cs b/dotnet/src/dotnetframework/GxClasses/Data/GXDataDb2.cs index ea570daad..9bc3da634 100644 --- a/dotnet/src/dotnetframework/GxClasses/Data/GXDataDb2.cs +++ b/dotnet/src/dotnetframework/GxClasses/Data/GXDataDb2.cs @@ -9,7 +9,6 @@ using GeneXus.Metadata; using GeneXus.Utils; using GxClasses.Helpers; -using log4net; namespace GeneXus.Data { diff --git a/dotnet/src/dotnetframework/GxClasses/Data/GXDataDb2400.cs b/dotnet/src/dotnetframework/GxClasses/Data/GXDataDb2400.cs index 6c2b40478..dddf16097 100644 --- a/dotnet/src/dotnetframework/GxClasses/Data/GXDataDb2400.cs +++ b/dotnet/src/dotnetframework/GxClasses/Data/GXDataDb2400.cs @@ -6,7 +6,6 @@ #if !NETCORE using Microsoft.HostIntegration.MsDb2Client; #endif -using log4net; using GeneXus.Application; using GeneXus.Cache; using GeneXus.Configuration; diff --git a/dotnet/src/dotnetframework/GxClasses/Data/GXDataHana.cs b/dotnet/src/dotnetframework/GxClasses/Data/GXDataHana.cs index ad2cf1337..256bd7994 100644 --- a/dotnet/src/dotnetframework/GxClasses/Data/GXDataHana.cs +++ b/dotnet/src/dotnetframework/GxClasses/Data/GXDataHana.cs @@ -8,7 +8,6 @@ using GeneXus.Metadata; using GeneXus.Utils; using GxClasses.Helpers; -using log4net; namespace GeneXus.Data { diff --git a/dotnet/src/dotnetframework/GxClasses/Data/GXDataInformix.cs b/dotnet/src/dotnetframework/GxClasses/Data/GXDataInformix.cs index 6b326f74b..1355285af 100644 --- a/dotnet/src/dotnetframework/GxClasses/Data/GXDataInformix.cs +++ b/dotnet/src/dotnetframework/GxClasses/Data/GXDataInformix.cs @@ -2,19 +2,17 @@ using System.Collections; using System.Data; using System.Data.Common; +using System.Globalization; +using System.IO; using System.Reflection; using System.Text; using System.Threading; - -using log4net; using GeneXus.Application; using GeneXus.Cache; using GeneXus.Configuration; -using GeneXus.Utils; -using System.Globalization; using GeneXus.Metadata; +using GeneXus.Utils; using GxClasses.Helpers; -using System.IO; namespace GeneXus.Data { diff --git a/dotnet/src/dotnetframework/GxClasses/Data/GXDataMysqlConnector.cs b/dotnet/src/dotnetframework/GxClasses/Data/GXDataMysqlConnector.cs index 5d819d439..a804ae6c3 100644 --- a/dotnet/src/dotnetframework/GxClasses/Data/GXDataMysqlConnector.cs +++ b/dotnet/src/dotnetframework/GxClasses/Data/GXDataMysqlConnector.cs @@ -1,7 +1,6 @@ using System; using System.Data; using System.Data.Common; -using System.Linq; using System.Reflection; using System.Security; using System.Text; @@ -9,7 +8,6 @@ using GeneXus.Cache; using GeneXus.Utils; using GxClasses.Helpers; -using log4net; using MySQLCommand = MySqlConnector.MySqlCommand; using MySQLConnection = MySqlConnector.MySqlConnection; using MySQLDataAdapter = MySqlConnector.MySqlDataAdapter; diff --git a/dotnet/src/dotnetframework/GxClasses/Data/GXDataMysqlDriverCS.cs b/dotnet/src/dotnetframework/GxClasses/Data/GXDataMysqlDriverCS.cs index df77b2082..a2688ea3b 100644 --- a/dotnet/src/dotnetframework/GxClasses/Data/GXDataMysqlDriverCS.cs +++ b/dotnet/src/dotnetframework/GxClasses/Data/GXDataMysqlDriverCS.cs @@ -1,12 +1,11 @@ -using GeneXus.Application; -using GeneXus.Cache; -using GeneXus.Utils; -using log4net; -using MySQLDriverCS; using System; using System.Data; using System.Data.Common; using System.Text; +using GeneXus.Application; +using GeneXus.Cache; +using GeneXus.Utils; +using MySQLDriverCS; namespace GeneXus.Data { diff --git a/dotnet/src/dotnetframework/GxClasses/Data/GXDataNTier.cs b/dotnet/src/dotnetframework/GxClasses/Data/GXDataNTier.cs index 16e1d3ba6..fca522d83 100644 --- a/dotnet/src/dotnetframework/GxClasses/Data/GXDataNTier.cs +++ b/dotnet/src/dotnetframework/GxClasses/Data/GXDataNTier.cs @@ -1,15 +1,14 @@ using System; -using GeneXus.Application; +using System.Collections.Generic; using System.Data; +using System.Text; +using GeneXus.Application; using GeneXus.Configuration; +using GeneXus.Data.ADO; using GeneXus.Data.NTier.ADO; -using GeneXus.Reorg; using GeneXus.Performance; -using log4net; -using System.Collections.Generic; -using GeneXus.Data.ADO; +using GeneXus.Reorg; using GeneXus.Utils; -using System.Text; namespace GeneXus.Data.NTier { diff --git a/dotnet/src/dotnetframework/GxClasses/Data/GXDataNTierADO.cs b/dotnet/src/dotnetframework/GxClasses/Data/GXDataNTierADO.cs index d838c3c1a..94b1b7e90 100644 --- a/dotnet/src/dotnetframework/GxClasses/Data/GXDataNTierADO.cs +++ b/dotnet/src/dotnetframework/GxClasses/Data/GXDataNTierADO.cs @@ -1,20 +1,19 @@ using System; -using System.Data; using System.Collections; -using GeneXus.Data.ADO; -using GeneXus.Configuration; -using GeneXus.Utils; +using System.Collections.Generic; +using System.Data; using System.IO; -using log4net; +using System.Net; using GeneXus.Application; -using System.Collections.Generic; +using GeneXus.Configuration; +using GeneXus.Data.ADO; using GeneXus.Services; -using System.Net; using GeneXus.Storage; +using GeneXus.Utils; namespace GeneXus.Data.NTier.ADO { - public class GXFatErrorFieldGetter : IFieldGetter + public class GXFatErrorFieldGetter : IFieldGetter { GxCommand _gxDbCommand; public GXFatErrorFieldGetter(GxCommand gxDbCommand) diff --git a/dotnet/src/dotnetframework/GxClasses/Data/GXDataNTierService.cs b/dotnet/src/dotnetframework/GxClasses/Data/GXDataNTierService.cs index 817de09bd..47b1348b5 100644 --- a/dotnet/src/dotnetframework/GxClasses/Data/GXDataNTierService.cs +++ b/dotnet/src/dotnetframework/GxClasses/Data/GXDataNTierService.cs @@ -1,21 +1,12 @@ -using System.Text; - using System; using System.Data; -using System.Collections; -using GeneXus.Data.ADO; -using GeneXus.Configuration; +using System.Data.Common; +using System.Text; using GeneXus.Cache; -using GeneXus.Utils; -using System.IO; -using log4net; -using GeneXus.Application; -using System.Collections.Generic; using GeneXus.Data.NTier.ADO; -using System.Reflection; -using GeneXus.Metadata; -using System.Data.Common; using GeneXus.Helpers; +using GeneXus.Metadata; +using GeneXus.Utils; namespace GeneXus.Data.NTier { diff --git a/dotnet/src/dotnetframework/GxClasses/Data/GXDataOracle.cs b/dotnet/src/dotnetframework/GxClasses/Data/GXDataOracle.cs index 2cb65dc02..bba71de26 100644 --- a/dotnet/src/dotnetframework/GxClasses/Data/GXDataOracle.cs +++ b/dotnet/src/dotnetframework/GxClasses/Data/GXDataOracle.cs @@ -9,7 +9,6 @@ using GeneXus.Configuration; using GeneXus.Metadata; using GeneXus.Utils; -using log4net; using System.IO; #if NETCORE using GxClasses.Helpers; diff --git a/dotnet/src/dotnetframework/GxClasses/Data/GXDataPostgreSQL.cs b/dotnet/src/dotnetframework/GxClasses/Data/GXDataPostgreSQL.cs index 02dfcaeaa..21791af2d 100644 --- a/dotnet/src/dotnetframework/GxClasses/Data/GXDataPostgreSQL.cs +++ b/dotnet/src/dotnetframework/GxClasses/Data/GXDataPostgreSQL.cs @@ -1,6 +1,5 @@ using System; using System.Text; -using log4net; using System.Data; using System.Data.Common; using GeneXus.Utils; diff --git a/dotnet/src/dotnetframework/GxClasses/Data/GXDataSqlite.cs b/dotnet/src/dotnetframework/GxClasses/Data/GXDataSqlite.cs index b7de8e9cf..966cfe46d 100644 --- a/dotnet/src/dotnetframework/GxClasses/Data/GXDataSqlite.cs +++ b/dotnet/src/dotnetframework/GxClasses/Data/GXDataSqlite.cs @@ -1,6 +1,5 @@ using GeneXus.Cache; using GeneXus.Utils; -using log4net; using System; using System.Text; using System.Data; diff --git a/dotnet/src/dotnetframework/GxClasses/Diagnostics/GXDebugManager.cs b/dotnet/src/dotnetframework/GxClasses/Diagnostics/GXDebugManager.cs index 55d95792d..dd51e8e90 100644 --- a/dotnet/src/dotnetframework/GxClasses/Diagnostics/GXDebugManager.cs +++ b/dotnet/src/dotnetframework/GxClasses/Diagnostics/GXDebugManager.cs @@ -5,11 +5,10 @@ using System.IO; using System.Threading; using GeneXus.Application; -using log4net; namespace GeneXus.Diagnostics { - + public class GXDebugManager { public const short GXDEBUG_VERSION = 2; diff --git a/dotnet/src/dotnetframework/GxClasses/Dialog/IDialog.cs b/dotnet/src/dotnetframework/GxClasses/Dialog/IDialog.cs index dedc44ff7..9d2362692 100644 --- a/dotnet/src/dotnetframework/GxClasses/Dialog/IDialog.cs +++ b/dotnet/src/dotnetframework/GxClasses/Dialog/IDialog.cs @@ -1,6 +1,5 @@ -using ConnectionBuilder; -using log4net; using System; +using ConnectionBuilder; namespace GeneXus.Utils { @@ -36,7 +35,7 @@ public static IConnectionDialogFactory DialogFactory } catch (Exception ex) { - var strErrorMsg = $"Error loading Dialogs provider. Check if {OsProviderAssembly}.dll exists "; + string strErrorMsg = $"Error loading Dialogs provider. Check if {OsProviderAssembly}.dll exists "; GXLogging.Debug(log, strErrorMsg, ex); throw new Exception(strErrorMsg, ex); } diff --git a/dotnet/src/dotnetframework/GxClasses/Dialog/IProcess.cs b/dotnet/src/dotnetframework/GxClasses/Dialog/IProcess.cs index 04265fe3a..bc03e868b 100644 --- a/dotnet/src/dotnetframework/GxClasses/Dialog/IProcess.cs +++ b/dotnet/src/dotnetframework/GxClasses/Dialog/IProcess.cs @@ -1,4 +1,3 @@ -using log4net; using System; using System.Diagnostics; diff --git a/dotnet/src/dotnetframework/GxClasses/Domain/ExpressionEvaluator.cs b/dotnet/src/dotnetframework/GxClasses/Domain/ExpressionEvaluator.cs index 8b6a4c4d6..faf841598 100644 --- a/dotnet/src/dotnetframework/GxClasses/Domain/ExpressionEvaluator.cs +++ b/dotnet/src/dotnetframework/GxClasses/Domain/ExpressionEvaluator.cs @@ -1,10 +1,8 @@ using System; -using GeneXus.Metadata; +using System.Reflection; using GeneXus.Application; using GeneXus.Configuration; -using System.Reflection; -using log4net; -using System.Collections; +using GeneXus.Metadata; namespace GeneXus.Utils { diff --git a/dotnet/src/dotnetframework/GxClasses/Domain/GXFileIO.cs b/dotnet/src/dotnetframework/GxClasses/Domain/GXFileIO.cs index b9de5a5dc..809321a32 100644 --- a/dotnet/src/dotnetframework/GxClasses/Domain/GXFileIO.cs +++ b/dotnet/src/dotnetframework/GxClasses/Domain/GXFileIO.cs @@ -3,7 +3,6 @@ using System.Collections; using GeneXus.Utils; using GeneXus.Application; -using log4net; using System.Runtime.CompilerServices; using GeneXus.Services; using System.Collections.Generic; diff --git a/dotnet/src/dotnetframework/GxClasses/Domain/GXGeolocation.cs b/dotnet/src/dotnetframework/GxClasses/Domain/GXGeolocation.cs index 9998431c6..e6c8e6aa2 100644 --- a/dotnet/src/dotnetframework/GxClasses/Domain/GXGeolocation.cs +++ b/dotnet/src/dotnetframework/GxClasses/Domain/GXGeolocation.cs @@ -1,11 +1,9 @@ using System; using System.Collections.Generic; -using System.Linq; using System.Text; using System.Net; using System.IO; using Jayrock.Json; -using log4net; using GeneXus.Utils; using System.Globalization; using GeneXus; @@ -16,7 +14,7 @@ namespace GX { - public class GXGeolocation + public class GXGeolocation { private const String MAPS_URI = "https://maps.google.com/maps/api/"; private static readonly IGXLogger log = GXLoggerFactory.GetLogger(); diff --git a/dotnet/src/dotnetframework/GxClasses/Domain/GXLDAP.cs b/dotnet/src/dotnetframework/GxClasses/Domain/GXLDAP.cs index 0ef849ae7..510b08b9d 100644 --- a/dotnet/src/dotnetframework/GxClasses/Domain/GXLDAP.cs +++ b/dotnet/src/dotnetframework/GxClasses/Domain/GXLDAP.cs @@ -2,7 +2,6 @@ using System.Collections; using System.DirectoryServices; using System.Text; -using log4net; #if NETCORE using Novell.Directory.Ldap; #endif diff --git a/dotnet/src/dotnetframework/GxClasses/Domain/GXXmlReadWrite.cs b/dotnet/src/dotnetframework/GxClasses/Domain/GXXmlReadWrite.cs index f34142d60..ce2e02ec0 100644 --- a/dotnet/src/dotnetframework/GxClasses/Domain/GXXmlReadWrite.cs +++ b/dotnet/src/dotnetframework/GxClasses/Domain/GXXmlReadWrite.cs @@ -1,19 +1,15 @@ using System; -using System.Xml; using System.Collections; using System.Collections.Specialized; -using System.Text; -using System.Net; using System.IO; +using System.Net; +using System.Text; +using System.Xml; using System.Xml.Schema; using GeneXus.Application; using GeneXus.Http.Client; using GeneXus.Http.Server; using GeneXus.Utils; -using log4net; - -using System.Xml.Xsl; -using System.Xml.XPath; namespace GeneXus.XML { diff --git a/dotnet/src/dotnetframework/GxClasses/Domain/GxCollections.cs b/dotnet/src/dotnetframework/GxClasses/Domain/GxCollections.cs index 49d38c131..e14805a46 100644 --- a/dotnet/src/dotnetframework/GxClasses/Domain/GxCollections.cs +++ b/dotnet/src/dotnetframework/GxClasses/Domain/GxCollections.cs @@ -1,26 +1,25 @@ namespace GeneXus.Utils { using System; - using System.Collections.Specialized; using System.Collections; + using System.Collections.Concurrent; using System.Collections.Generic; - using GeneXus.XML; - using System.Reflection; - using System.Xml.Serialization; + using System.Collections.Specialized; + using System.ComponentModel; using System.Data; - using GeneXus.Application; - using System.Text; using System.Globalization; - using Jayrock.Json; - using log4net; - using System.ComponentModel; - using System.Xml; - using System.Runtime.Serialization; using System.Linq; - using GeneXus.Http; + using System.Reflection; + using System.Runtime.Serialization; + using System.Text; + using System.Xml; + using System.Xml.Serialization; + using GeneXus.Application; using GeneXus.Configuration; + using GeneXus.Http; using GeneXus.Metadata; - using System.Collections.Concurrent; + using GeneXus.XML; + using Jayrock.Json; public class GxParameterCollection : IDataParameterCollection { diff --git a/dotnet/src/dotnetframework/GxClasses/Domain/GxGenericCollections.cs b/dotnet/src/dotnetframework/GxClasses/Domain/GxGenericCollections.cs index 577126aca..657b8feaa 100644 --- a/dotnet/src/dotnetframework/GxClasses/Domain/GxGenericCollections.cs +++ b/dotnet/src/dotnetframework/GxClasses/Domain/GxGenericCollections.cs @@ -1,13 +1,11 @@ -using GeneXus.Application; -using GeneXus.XML; -using Jayrock.Json; -using log4net; using System; using System.Collections; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Linq; using System.Xml.Serialization; +using GeneXus.Application; +using GeneXus.XML; +using Jayrock.Json; namespace GeneXus.Utils { diff --git a/dotnet/src/dotnetframework/GxClasses/Domain/GxHttpClient.cs b/dotnet/src/dotnetframework/GxClasses/Domain/GxHttpClient.cs index 0115c7b6d..0f3b40e4a 100644 --- a/dotnet/src/dotnetframework/GxClasses/Domain/GxHttpClient.cs +++ b/dotnet/src/dotnetframework/GxClasses/Domain/GxHttpClient.cs @@ -19,7 +19,6 @@ namespace GeneXus.Http.Client using GeneXus.Application; using GeneXus.Configuration; using GeneXus.Utils; - using log4net; #if NETCORE using Microsoft.AspNetCore.WebUtilities; #endif diff --git a/dotnet/src/dotnetframework/GxClasses/Domain/GxMessaging.cs b/dotnet/src/dotnetframework/GxClasses/Domain/GxMessaging.cs index 610bc3a8c..f05a85b98 100644 --- a/dotnet/src/dotnetframework/GxClasses/Domain/GxMessaging.cs +++ b/dotnet/src/dotnetframework/GxClasses/Domain/GxMessaging.cs @@ -8,7 +8,6 @@ using System.Text.RegularExpressions; using GeneXus.Configuration; using GeneXus.Application; -using log4net; using System.Security; namespace GeneXus.Utils diff --git a/dotnet/src/dotnetframework/GxClasses/Domain/GxSession.cs b/dotnet/src/dotnetframework/GxClasses/Domain/GxSession.cs index 2cdfddb49..af89955f3 100644 --- a/dotnet/src/dotnetframework/GxClasses/Domain/GxSession.cs +++ b/dotnet/src/dotnetframework/GxClasses/Domain/GxSession.cs @@ -6,16 +6,13 @@ #else using Microsoft.AspNetCore.Http; #endif -using System.Threading; using GeneXus.Utils; using GeneXus.Encryption; using GeneXus.Application; -using log4net; -using System.Collections.Generic; namespace GeneXus.Http { - public interface IGxSession + public interface IGxSession { void Set(string key, string val); void Set(string key, T val) where T:class; diff --git a/dotnet/src/dotnetframework/GxClasses/Domain/SD/SDApis.cs b/dotnet/src/dotnetframework/GxClasses/Domain/SD/SDApis.cs index fb6daed8f..9ce156ff8 100644 --- a/dotnet/src/dotnetframework/GxClasses/Domain/SD/SDApis.cs +++ b/dotnet/src/dotnetframework/GxClasses/Domain/SD/SDApis.cs @@ -1,11 +1,7 @@ +using System; using GeneXus; using GeneXus.Application; using GeneXus.Data; -using GeneXus.Utils; -using log4net; -using System; -using System.Collections; -using System.Collections.Generic; namespace GX { diff --git a/dotnet/src/dotnetframework/GxClasses/Helpers/GXFileWatcher.cs b/dotnet/src/dotnetframework/GxClasses/Helpers/GXFileWatcher.cs index 6d91dac34..df785527a 100644 --- a/dotnet/src/dotnetframework/GxClasses/Helpers/GXFileWatcher.cs +++ b/dotnet/src/dotnetframework/GxClasses/Helpers/GXFileWatcher.cs @@ -4,7 +4,6 @@ namespace GeneXus.Application using System.Collections; using System.IO; using GeneXus.Configuration; - using log4net; using System.Collections.Generic; using System.Web; using System.Threading; @@ -14,7 +13,6 @@ namespace GeneXus.Application using System.Web.Configuration; #endif using System.Xml; - using GeneXus.Http; using System.Collections.Concurrent; public class GXFileWatcher : IDisposable diff --git a/dotnet/src/dotnetframework/GxClasses/Helpers/GXMetadata.cs b/dotnet/src/dotnetframework/GxClasses/Helpers/GXMetadata.cs index eba8f33fc..9c83d6a8f 100644 --- a/dotnet/src/dotnetframework/GxClasses/Helpers/GXMetadata.cs +++ b/dotnet/src/dotnetframework/GxClasses/Helpers/GXMetadata.cs @@ -3,7 +3,6 @@ namespace GeneXus.Metadata using System; using System.Reflection; using System.Collections; - using log4net; using System.IO; using GeneXus.Utils; using GeneXus.Configuration; diff --git a/dotnet/src/dotnetframework/GxClasses/Helpers/GXRes.cs b/dotnet/src/dotnetframework/GxClasses/Helpers/GXRes.cs index a59221c8b..d857504fb 100644 --- a/dotnet/src/dotnetframework/GxClasses/Helpers/GXRes.cs +++ b/dotnet/src/dotnetframework/GxClasses/Helpers/GXRes.cs @@ -7,7 +7,6 @@ namespace GeneXus.Resources using GeneXus.Configuration; using GeneXus.Utils; using System.IO; - using log4net; using GeneXus.Application; using System.Collections; using System.Text; diff --git a/dotnet/src/dotnetframework/GxClasses/Helpers/GXRestUtils.cs b/dotnet/src/dotnetframework/GxClasses/Helpers/GXRestUtils.cs index e6e400f8e..27e7b1928 100644 --- a/dotnet/src/dotnetframework/GxClasses/Helpers/GXRestUtils.cs +++ b/dotnet/src/dotnetframework/GxClasses/Helpers/GXRestUtils.cs @@ -8,7 +8,6 @@ using System.Text.Json; using System.Text.Json.Serialization; #endif -using log4net; using System.IO; using Jayrock.Json; using GeneXus.Configuration; diff --git a/dotnet/src/dotnetframework/GxClasses/Helpers/GXUtilsGeospatial.cs b/dotnet/src/dotnetframework/GxClasses/Helpers/GXUtilsGeospatial.cs index 42a1f2cf3..b760d64ee 100644 --- a/dotnet/src/dotnetframework/GxClasses/Helpers/GXUtilsGeospatial.cs +++ b/dotnet/src/dotnetframework/GxClasses/Helpers/GXUtilsGeospatial.cs @@ -1,19 +1,17 @@ using System; -using System.Globalization; -using System.Runtime.Serialization; using System.Collections; -using Jayrock.Json; -using log4net; +using System.Data.SqlTypes; +using System.Globalization; using System.Reflection; +using System.Runtime.Serialization; using GeneXus.Metadata; -using System.Data.SqlTypes; -using System.IO; +using Jayrock.Json; #if NETCORE using GxClasses.Helpers; #endif namespace GeneXus.Utils { - public interface IGeographicNative + public interface IGeographicNative { Object InnerValue diff --git a/dotnet/src/dotnetframework/GxClasses/Helpers/HttpHelper.cs b/dotnet/src/dotnetframework/GxClasses/Helpers/HttpHelper.cs index 1f3d73ab4..0e19a76d5 100644 --- a/dotnet/src/dotnetframework/GxClasses/Helpers/HttpHelper.cs +++ b/dotnet/src/dotnetframework/GxClasses/Helpers/HttpHelper.cs @@ -1,7 +1,6 @@ using GeneXus.Application; using GeneXus.Configuration; using GeneXus.Utils; -using log4net; #if NETCORE using GxClasses.Helpers; using Microsoft.AspNetCore.Http; diff --git a/dotnet/src/dotnetframework/GxClasses/Helpers/JSONHelper.cs b/dotnet/src/dotnetframework/GxClasses/Helpers/JSONHelper.cs index a638b3873..a857c3f27 100644 --- a/dotnet/src/dotnetframework/GxClasses/Helpers/JSONHelper.cs +++ b/dotnet/src/dotnetframework/GxClasses/Helpers/JSONHelper.cs @@ -1,5 +1,4 @@ using System; -using System.Collections; using System.Collections.Generic; using System.IO; using System.Runtime.Serialization.Json; @@ -7,13 +6,11 @@ using Jayrock.Json; using System.Runtime.Serialization; using GeneXus.Configuration; -using System.Linq; #if NETCORE using System.Buffers.Text; using System.Text.Json; using System.Text.Json.Serialization; #endif -using log4net; namespace GeneXus.Utils { diff --git a/dotnet/src/dotnetframework/GxClasses/Helpers/ThemeHelper.cs b/dotnet/src/dotnetframework/GxClasses/Helpers/ThemeHelper.cs index aa96d8b3a..d1d33d772 100644 --- a/dotnet/src/dotnetframework/GxClasses/Helpers/ThemeHelper.cs +++ b/dotnet/src/dotnetframework/GxClasses/Helpers/ThemeHelper.cs @@ -1,10 +1,9 @@ -using GeneXus.Application; -using GeneXus.Utils; -using log4net; using System; using System.Collections.Concurrent; using System.IO; using System.Runtime.Serialization; +using GeneXus.Application; +using GeneXus.Utils; namespace GeneXus.Helpers { diff --git a/dotnet/src/dotnetframework/GxClasses/Management/GXManagement.cs b/dotnet/src/dotnetframework/GxClasses/Management/GXManagement.cs index 90f4fadec..3b2b69162 100644 --- a/dotnet/src/dotnetframework/GxClasses/Management/GXManagement.cs +++ b/dotnet/src/dotnetframework/GxClasses/Management/GXManagement.cs @@ -3,16 +3,14 @@ using System.ComponentModel; using System.Management.Instrumentation; using System.Reflection; +using System.Security; using GeneXus.Cache; using GeneXus.Configuration; using GeneXus.Data.ADO; using GeneXus.Utils; using GeneXus.XML; -using log4net; -using System.Security; -using System.Security.Permissions; -[assembly:Instrumented(@"root\GeneXus")] +[assembly: Instrumented(@"root\GeneXus")] namespace GeneXus.Management { [RunInstaller(true)] diff --git a/dotnet/src/dotnetframework/GxClasses/Management/GXPerformance.cs b/dotnet/src/dotnetframework/GxClasses/Management/GXPerformance.cs index 823738b4b..8d2f67e99 100644 --- a/dotnet/src/dotnetframework/GxClasses/Management/GXPerformance.cs +++ b/dotnet/src/dotnetframework/GxClasses/Management/GXPerformance.cs @@ -1,15 +1,14 @@ -using System.Management.Instrumentation; -using System.Collections; using System; +using System.Collections; +using System.Collections.Concurrent; +using System.Diagnostics; +using System.Management.Instrumentation; +using System.Security; using GeneXus.Data; using GeneXus.Data.ADO; using GeneXus.Data.NTier; using GeneXus.Data.NTier.ADO; using GeneXus.XML; -using System.Diagnostics; -using log4net; -using System.Security; -using System.Collections.Concurrent; namespace GeneXus.Performance { diff --git a/dotnet/src/dotnetframework/GxClasses/Middleware/GXHttp.cs b/dotnet/src/dotnetframework/GxClasses/Middleware/GXHttp.cs index f5fe21520..a91181789 100644 --- a/dotnet/src/dotnetframework/GxClasses/Middleware/GXHttp.cs +++ b/dotnet/src/dotnetframework/GxClasses/Middleware/GXHttp.cs @@ -20,12 +20,9 @@ namespace GeneXus.Http using GeneXus.Utils; using GeneXus.XML; using GeneXus.WebControls; - - using log4net; using Jayrock.Json; using Helpers; using System.Collections.Concurrent; - using Microsoft.Net.Http.Headers; using System.Net.Http; #if NETCORE using Microsoft.AspNetCore.Http; diff --git a/dotnet/src/dotnetframework/GxClasses/Middleware/GXHttpModules.cs b/dotnet/src/dotnetframework/GxClasses/Middleware/GXHttpModules.cs index 89ab983df..f88ba3c46 100644 --- a/dotnet/src/dotnetframework/GxClasses/Middleware/GXHttpModules.cs +++ b/dotnet/src/dotnetframework/GxClasses/Middleware/GXHttpModules.cs @@ -1,20 +1,19 @@ using System; using System.Collections.Generic; -using GeneXus.Configuration; -using System.Web; using System.IO; -using GeneXus.Utils; +using System.Net.Http; +using System.Reflection; +using System.Security; +using System.Web; +using System.Web.Configuration; +using System.Web.Hosting; +using System.Web.SessionState; using GeneXus.Application; +using GeneXus.Configuration; +using GeneXus.Utils; using ManagedFusion.Rewriter; -using System.Web.Hosting; -using ManagedFusion.Rewriter.Rules; using ManagedFusion.Rewriter.Engines; -using System.Reflection; -using log4net; -using System.Web.SessionState; -using System.Web.Configuration; -using System.Security; -using System.Net.Http; +using ManagedFusion.Rewriter.Rules; namespace GeneXus.Http.HttpModules { diff --git a/dotnet/src/dotnetframework/GxClasses/Middleware/GXHttpServices.cs b/dotnet/src/dotnetframework/GxClasses/Middleware/GXHttpServices.cs index fd96e2a76..992631cde 100644 --- a/dotnet/src/dotnetframework/GxClasses/Middleware/GXHttpServices.cs +++ b/dotnet/src/dotnetframework/GxClasses/Middleware/GXHttpServices.cs @@ -1,28 +1,18 @@ namespace GeneXus.Http { using System; - using System.Collections; - using System.Collections.Specialized; using System.Collections.Generic; - using System.Globalization; using System.IO; using System.Reflection; using System.Text; - using System.Text.RegularExpressions; - using System.Threading; using GeneXus.Application; using GeneXus.Configuration; using GeneXus.Data.NTier; - using GeneXus.Encryption; using GeneXus.Metadata; using GeneXus.Mime; using GeneXus.Security; using GeneXus.Utils; - using GeneXus.XML; - using GeneXus.WebControls; - - using log4net; using Jayrock.Json; using System.Web.SessionState; using System.Web; diff --git a/dotnet/src/dotnetframework/GxClasses/Middleware/HandlerFactory.cs b/dotnet/src/dotnetframework/GxClasses/Middleware/HandlerFactory.cs index d35f14645..05c998433 100644 --- a/dotnet/src/dotnetframework/GxClasses/Middleware/HandlerFactory.cs +++ b/dotnet/src/dotnetframework/GxClasses/Middleware/HandlerFactory.cs @@ -1,18 +1,17 @@ using System; -using System.Web; -using System.Reflection; -using GeneXus.Configuration; using System.Collections.Generic; -using log4net; using System.IO; -using GeneXus.Application; -using GeneXus.Utils; -using GeneXus.Http.HttpModules; -using GeneXus.Metadata; using System.Net; -using System.Text.RegularExpressions; using System.Net.Http; +using System.Reflection; +using System.Text.RegularExpressions; +using System.Web; +using GeneXus.Application; +using GeneXus.Configuration; using GeneXus.Http; +using GeneXus.Http.HttpModules; +using GeneXus.Metadata; +using GeneXus.Utils; namespace GeneXus.HttpHandlerFactory { diff --git a/dotnet/src/dotnetframework/GxClasses/Model/GXBaseObject.cs b/dotnet/src/dotnetframework/GxClasses/Model/GXBaseObject.cs index 091060c9a..c6113f10d 100644 --- a/dotnet/src/dotnetframework/GxClasses/Model/GXBaseObject.cs +++ b/dotnet/src/dotnetframework/GxClasses/Model/GXBaseObject.cs @@ -4,7 +4,6 @@ using GeneXus.Mock; using GeneXus.Utils; using Jayrock.Json; -using log4net; #if NETCORE using Microsoft.AspNetCore.Http.Extensions; #endif diff --git a/dotnet/src/dotnetframework/GxClasses/Model/GXSilentTrn.cs b/dotnet/src/dotnetframework/GxClasses/Model/GXSilentTrn.cs index 56dd05080..5732587c2 100644 --- a/dotnet/src/dotnetframework/GxClasses/Model/GXSilentTrn.cs +++ b/dotnet/src/dotnetframework/GxClasses/Model/GXSilentTrn.cs @@ -10,14 +10,12 @@ namespace GeneXus.Utils using System.Text; using System.Security.Cryptography; using System.Reflection; - using log4net; using System.Runtime.Serialization; #if !NETCORE using System.ServiceModel; #endif using Configuration; using System.Globalization; - using GeneXus.Http; public interface IGxSilentTrn { diff --git a/dotnet/src/dotnetframework/GxClasses/Model/GXWebProcedure.cs b/dotnet/src/dotnetframework/GxClasses/Model/GXWebProcedure.cs index 43366566d..fc01e6f12 100644 --- a/dotnet/src/dotnetframework/GxClasses/Model/GXWebProcedure.cs +++ b/dotnet/src/dotnetframework/GxClasses/Model/GXWebProcedure.cs @@ -5,17 +5,12 @@ namespace GeneXus.Procedure using GeneXus.Printer; using System.Globalization; using GeneXus.Http; - using System.Threading; using GeneXus.Mime; - using GeneXus.Utils; #if NETCORE using Microsoft.AspNetCore.Http; #else using System.Web; #endif - using log4net; - using GeneXus.Application; - using GeneXus.Data.NTier; public class GXWebProcedure : GXHttpHandler { diff --git a/dotnet/src/dotnetframework/GxClasses/Model/GxMockProvider.cs b/dotnet/src/dotnetframework/GxClasses/Model/GxMockProvider.cs index 5ed03425b..0cd5b3c23 100644 --- a/dotnet/src/dotnetframework/GxClasses/Model/GxMockProvider.cs +++ b/dotnet/src/dotnetframework/GxClasses/Model/GxMockProvider.cs @@ -1,6 +1,5 @@ using System.Collections.Generic; using GeneXus.Application; -using log4net; namespace GeneXus.Mock { public interface IGxMock diff --git a/dotnet/src/dotnetframework/GxClasses/Model/gxproc.cs b/dotnet/src/dotnetframework/GxClasses/Model/gxproc.cs index 77fe03061..7098f3803 100644 --- a/dotnet/src/dotnetframework/GxClasses/Model/gxproc.cs +++ b/dotnet/src/dotnetframework/GxClasses/Model/gxproc.cs @@ -14,7 +14,6 @@ namespace GeneXus.Procedure using GeneXus.Printer; using GeneXus.Utils; using GeneXus.XML; - using log4net; public abstract class GXProcedure: GXBaseObject { diff --git a/dotnet/src/dotnetframework/GxClasses/Notifications/WebSocket/GXWebSocketFactory.cs b/dotnet/src/dotnetframework/GxClasses/Notifications/WebSocket/GXWebSocketFactory.cs index a0b36e7a8..16e075739 100644 --- a/dotnet/src/dotnetframework/GxClasses/Notifications/WebSocket/GXWebSocketFactory.cs +++ b/dotnet/src/dotnetframework/GxClasses/Notifications/WebSocket/GXWebSocketFactory.cs @@ -1,6 +1,5 @@ using System; using GeneXus.Http.WebSocket; -using log4net; namespace GeneXus.Notifications.WebSocket { diff --git a/dotnet/src/dotnetframework/GxClasses/Printer/GxPrinter.cs b/dotnet/src/dotnetframework/GxClasses/Printer/GxPrinter.cs index 1fc0f752b..e47f48096 100644 --- a/dotnet/src/dotnetframework/GxClasses/Printer/GxPrinter.cs +++ b/dotnet/src/dotnetframework/GxClasses/Printer/GxPrinter.cs @@ -1,24 +1,22 @@ namespace GeneXus.Printer { using System; - using System.Runtime.InteropServices; - using System.Runtime.CompilerServices; + using System.Collections; + using System.Collections.Generic; + using System.Collections.Specialized; using System.Drawing; - using System.Drawing.Printing; using System.Drawing.Imaging; + using System.Drawing.Printing; + using System.Globalization; using System.IO; + using System.Runtime.CompilerServices; + using System.Runtime.InteropServices; + using System.Text; using System.Text.RegularExpressions; - using System.Collections.Specialized; - using System.Collections.Generic; - using System.Collections; using System.Threading; - using System.Globalization; - using System.Text; - using GeneXus.Configuration; - using GeneXus.XML; - using log4net; - using System.Runtime.Serialization; using System.Threading.Tasks; + using GeneXus.Configuration; + using GeneXus.XML; public interface IPrintHandler { diff --git a/dotnet/src/dotnetframework/GxClasses/Reorg/GXReorg.cs b/dotnet/src/dotnetframework/GxClasses/Reorg/GXReorg.cs index ac28d111c..e156745ad 100644 --- a/dotnet/src/dotnetframework/GxClasses/Reorg/GXReorg.cs +++ b/dotnet/src/dotnetframework/GxClasses/Reorg/GXReorg.cs @@ -1,21 +1,20 @@ -namespace GeneXus.Reorg +namespace GeneXus.Reorg { using System; - using System.IO; using System.Collections; - using GeneXus.Application; - using log4net; using System.Collections.Specialized; - using System.Runtime.CompilerServices; - using GeneXus.Metadata; + using System.IO; + using System.Reflection; + using System.Runtime.CompilerServices; using System.Threading; + using GeneXus.Application; using GeneXus.Configuration; - using GeneXus.Data.ADO; using GeneXus.Data; + using GeneXus.Data.ADO; + using GeneXus.Data.NTier; + using GeneXus.Metadata; using GeneXus.Resources; using GeneXus.Utils; - using GeneXus.Data.NTier; - using System.Reflection; public interface IReorgReader { diff --git a/dotnet/src/dotnetframework/GxClasses/Security/GxSecurityProvider.cs b/dotnet/src/dotnetframework/GxClasses/Security/GxSecurityProvider.cs index c7b59f95f..2f6b276a3 100644 --- a/dotnet/src/dotnetframework/GxClasses/Security/GxSecurityProvider.cs +++ b/dotnet/src/dotnetframework/GxClasses/Security/GxSecurityProvider.cs @@ -1,11 +1,8 @@ +using System; +using System.Collections.Generic; using GeneXus.Application; using GeneXus.Configuration; using GeneXus.Metadata; -using log4net; -using System; -using System.Collections; -using System.Collections.Generic; -using System.Reflection; namespace GeneXus.Security { public class GxResult diff --git a/dotnet/src/dotnetframework/GxClasses/Security/WebSecurity.cs b/dotnet/src/dotnetframework/GxClasses/Security/WebSecurity.cs index ab50dd078..bb8c6a579 100644 --- a/dotnet/src/dotnetframework/GxClasses/Security/WebSecurity.cs +++ b/dotnet/src/dotnetframework/GxClasses/Security/WebSecurity.cs @@ -8,7 +8,6 @@ using GeneXus.Application; using GeneXus.Configuration; using GeneXus.Utils; -using log4net; using Microsoft.IdentityModel.Tokens; using static GeneXus.Web.Security.SecureTokenHelper; @@ -25,7 +24,7 @@ public static string StripInvalidChars(string input) { if (string.IsNullOrEmpty(input)) return input; - var output = new string(input.Where(c => !char.IsControl(c)).ToArray()); + string output = new string(input.Where(c => !char.IsControl(c)).ToArray()); return output.Trim(); } diff --git a/dotnet/src/dotnetframework/GxClasses/Services/Caching/GxCache.cs b/dotnet/src/dotnetframework/GxClasses/Services/Caching/GxCache.cs index bdb789012..1bda980fe 100644 --- a/dotnet/src/dotnetframework/GxClasses/Services/Caching/GxCache.cs +++ b/dotnet/src/dotnetframework/GxClasses/Services/Caching/GxCache.cs @@ -2,7 +2,6 @@ using System.Collections; using System.Collections.Specialized; using System.Xml; -using log4net; using System.Threading; using System.Globalization; using GeneXus.Management; @@ -21,7 +20,7 @@ #endif namespace GeneXus.Cache { - internal delegate void AddDataHandler(string key, + internal delegate void AddDataHandler(string key, ICacheItemExpiration expiration); [Obsolete("Not for public use. Replaced by ICacheService2", false)] diff --git a/dotnet/src/dotnetframework/GxClasses/Services/GXRestServices.cs b/dotnet/src/dotnetframework/GxClasses/Services/GXRestServices.cs index 65bcd4ce8..0d974268a 100644 --- a/dotnet/src/dotnetframework/GxClasses/Services/GXRestServices.cs +++ b/dotnet/src/dotnetframework/GxClasses/Services/GXRestServices.cs @@ -5,7 +5,6 @@ using System.IO; using System.Net; using System.Net.Http; -using System.Runtime.Serialization; using System.Runtime.Serialization.Json; using System.Security; using System.ServiceModel; @@ -16,7 +15,6 @@ using System.ServiceModel.Web; using System.Text; using System.Web; -using System.Web.Helpers; using System.Web.Mvc; using GeneXus.Application; using GeneXus.Configuration; @@ -24,8 +22,6 @@ using GeneXus.Http; using GeneXus.Metadata; using GeneXus.Security; -using log4net; -using Microsoft.IdentityModel.Tokens; using Microsoft.Net.Http.Headers; namespace GeneXus.Utils diff --git a/dotnet/src/dotnetframework/GxClasses/Services/GxRestWrapper.cs b/dotnet/src/dotnetframework/GxClasses/Services/GxRestWrapper.cs index 8909d45d8..03fd8f122 100644 --- a/dotnet/src/dotnetframework/GxClasses/Services/GxRestWrapper.cs +++ b/dotnet/src/dotnetframework/GxClasses/Services/GxRestWrapper.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.Text; -using log4net; #if NETCORE using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http.Features; @@ -26,7 +25,6 @@ using GeneXus.Security; using System.Collections; using Jayrock.Json; -using Microsoft.Net.Http.Headers; using System.Net.Http; using System.Diagnostics; using GeneXus.Diagnostics; diff --git a/dotnet/src/dotnetframework/GxClasses/Services/Storage/ExternalProviderBase.cs b/dotnet/src/dotnetframework/GxClasses/Services/Storage/ExternalProviderBase.cs index 6ce9055af..df8816b04 100644 --- a/dotnet/src/dotnetframework/GxClasses/Services/Storage/ExternalProviderBase.cs +++ b/dotnet/src/dotnetframework/GxClasses/Services/Storage/ExternalProviderBase.cs @@ -1,7 +1,6 @@ using System; using System.IO; using GeneXus.Encryption; -using log4net; #if NETCORE using GeneXus.Mime; #else diff --git a/dotnet/src/dotnetframework/GxClasses/View/GXWebControls.cs b/dotnet/src/dotnetframework/GxClasses/View/GXWebControls.cs index ff887b8a5..8985e6859 100644 --- a/dotnet/src/dotnetframework/GxClasses/View/GXWebControls.cs +++ b/dotnet/src/dotnetframework/GxClasses/View/GXWebControls.cs @@ -1,5 +1,4 @@ using System; -using System.Web; using System.Drawing; #if !NETCORE using System.Web.UI; @@ -15,14 +14,12 @@ using GeneXus.Utils; using System.Text.RegularExpressions; using Jayrock.Json; -using System.IO; using GeneXus.Configuration; using GeneXus.Application; -using log4net; namespace GeneXus.WebControls { - public class GXWebStdMethods + public class GXWebStdMethods { private static Type webStdType; diff --git a/dotnet/src/dotnetframework/GxDataInitialization/GXDataInitialization.cs b/dotnet/src/dotnetframework/GxDataInitialization/GXDataInitialization.cs index c90fb871e..19296078f 100644 --- a/dotnet/src/dotnetframework/GxDataInitialization/GXDataInitialization.cs +++ b/dotnet/src/dotnetframework/GxDataInitialization/GXDataInitialization.cs @@ -1,18 +1,14 @@ -using GeneXus.Application; -using GeneXus.Configuration; -using GeneXus.Data.NTier; -using GeneXus.Metadata; -using GeneXus.Procedure; -using GeneXus.Reorg; -using GeneXus.Resources; -using log4net; using System; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Reflection; using System.Text; using System.Xml.Serialization; +using GeneXus.Application; +using GeneXus.Configuration; +using GeneXus.Metadata; +using GeneXus.Procedure; +using GeneXus.Resources; namespace GeneXus.Utils { diff --git a/dotnet/src/dotnetframework/GxExcel/GxExcelEPPlus.cs b/dotnet/src/dotnetframework/GxExcel/GxExcelEPPlus.cs index 2ebb4d027..c833dea5a 100644 --- a/dotnet/src/dotnetframework/GxExcel/GxExcelEPPlus.cs +++ b/dotnet/src/dotnetframework/GxExcel/GxExcelEPPlus.cs @@ -1,9 +1,8 @@ using System; using System.IO; -using log4net; +using GeneXus.Office.Excel; using OfficeOpenXml; using OfficeOpenXml.Style; -using GeneXus.Office.Excel; namespace GeneXus.Office.ExcelGXEPPlus { diff --git a/dotnet/src/dotnetframework/GxExcel/GxExcelI.cs b/dotnet/src/dotnetframework/GxExcel/GxExcelI.cs index 14bdb537c..39be3b6f0 100644 --- a/dotnet/src/dotnetframework/GxExcel/GxExcelI.cs +++ b/dotnet/src/dotnetframework/GxExcel/GxExcelI.cs @@ -1,16 +1,14 @@ using System; -using System.Reflection; -using log4net; using System.Diagnostics; using System.IO; +using System.Reflection; using GeneXus.Application; -using GeneXus.Utils; -using GeneXus.Services; using GeneXus.Office.Excel; +using GeneXus.Services; namespace GeneXus.Office { - public class ExcelDocumentI + public class ExcelDocumentI { static readonly IGXLogger log = GXLoggerFactory.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName); diff --git a/dotnet/src/dotnetframework/GxExcel/GxExcelLite.cs b/dotnet/src/dotnetframework/GxExcel/GxExcelLite.cs index 258f9f879..7e76fe0a9 100644 --- a/dotnet/src/dotnetframework/GxExcel/GxExcelLite.cs +++ b/dotnet/src/dotnetframework/GxExcel/GxExcelLite.cs @@ -1,9 +1,7 @@ using System; -using GeneXus.Office; using System.Collections; -using System.Reflection; using System.IO; -using log4net; +using System.Reflection; using GeneXus.Application; using GeneXus.Office.Excel; using GxClasses.Helpers; diff --git a/dotnet/src/dotnetframework/GxMail/Exchange/ExchangeSession.cs b/dotnet/src/dotnetframework/GxMail/Exchange/ExchangeSession.cs index 079858e07..2127f7b3b 100644 --- a/dotnet/src/dotnetframework/GxMail/Exchange/ExchangeSession.cs +++ b/dotnet/src/dotnetframework/GxMail/Exchange/ExchangeSession.cs @@ -1,10 +1,9 @@ -using log4net; -using Microsoft.Exchange.WebServices.Data; -using Microsoft.Identity.Client; using System; using System.IO; using System.Linq; using System.Net; +using Microsoft.Exchange.WebServices.Data; +using Microsoft.Identity.Client; namespace GeneXus.Mail.Exchange { diff --git a/dotnet/src/dotnetframework/GxMail/Exchange/Service.cs b/dotnet/src/dotnetframework/GxMail/Exchange/Service.cs index a50ff52f4..1208ba985 100644 --- a/dotnet/src/dotnetframework/GxMail/Exchange/Service.cs +++ b/dotnet/src/dotnetframework/GxMail/Exchange/Service.cs @@ -2,11 +2,10 @@ using System.Net; using Microsoft.Exchange.WebServices.Data; -using log4net; namespace GeneXus.Mail.Exchange { - public static class Service + public static class Service { private static readonly IGXLogger log = GXLoggerFactory.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName); diff --git a/dotnet/src/dotnetframework/GxMail/Exchange/TraceListener.cs b/dotnet/src/dotnetframework/GxMail/Exchange/TraceListener.cs index a8ed7829e..5cbb39a09 100644 --- a/dotnet/src/dotnetframework/GxMail/Exchange/TraceListener.cs +++ b/dotnet/src/dotnetframework/GxMail/Exchange/TraceListener.cs @@ -1,13 +1,8 @@ -using log4net; using Microsoft.Exchange.WebServices.Data; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; namespace GeneXus.Mail.Exchange { - public class TraceListener : ITraceListener + public class TraceListener : ITraceListener { private static readonly IGXLogger log = GXLoggerFactory.GetLogger(); public void Trace(string traceType, string traceMessage) diff --git a/dotnet/src/dotnetframework/GxMail/GXMailSession.cs b/dotnet/src/dotnetframework/GxMail/GXMailSession.cs index 8d8d2bd73..bdc7e236d 100644 --- a/dotnet/src/dotnetframework/GxMail/GXMailSession.cs +++ b/dotnet/src/dotnetframework/GxMail/GXMailSession.cs @@ -1,9 +1,8 @@ -using log4net; using System; namespace GeneXus.Mail { - + public abstract class GXMailSession { private static readonly IGXLogger log = GXLoggerFactory.GetLogger(); diff --git a/dotnet/src/dotnetframework/GxMail/GXPOP3Session.cs b/dotnet/src/dotnetframework/GxMail/GXPOP3Session.cs index 2db01333e..aac24161e 100644 --- a/dotnet/src/dotnetframework/GxMail/GXPOP3Session.cs +++ b/dotnet/src/dotnetframework/GxMail/GXPOP3Session.cs @@ -1,11 +1,10 @@ using System; -using GeneXus.Mail.Internals; using GeneXus.Configuration; -using log4net; +using GeneXus.Mail.Internals; namespace GeneXus.Mail { - + public class GXPOP3Session : GXMailSession { private static readonly IGXLogger log = GXLoggerFactory.GetLogger(); diff --git a/dotnet/src/dotnetframework/GxMail/GXSMTPSession.cs b/dotnet/src/dotnetframework/GxMail/GXSMTPSession.cs index 4938afd0e..42ec2cf4d 100644 --- a/dotnet/src/dotnetframework/GxMail/GXSMTPSession.cs +++ b/dotnet/src/dotnetframework/GxMail/GXSMTPSession.cs @@ -1,13 +1,11 @@ using System; -using GeneXus.Mail.Internals; -using GeneXus.Utils; using GeneXus.Configuration; -using log4net; +using GeneXus.Mail.Internals; namespace GeneXus.Mail { - - public class GXSMTPSession : GXMailSession + + public class GXSMTPSession : GXMailSession { static readonly IGXLogger log = GXLoggerFactory.GetLogger(); private ISMTPSession session; diff --git a/dotnet/src/dotnetframework/GxMail/MAPISession.cs b/dotnet/src/dotnetframework/GxMail/MAPISession.cs index 62f201422..1211d92e7 100644 --- a/dotnet/src/dotnetframework/GxMail/MAPISession.cs +++ b/dotnet/src/dotnetframework/GxMail/MAPISession.cs @@ -1,11 +1,10 @@ using System; -using log4net; using GeneXus.Utils; using MAPI; namespace GeneXus.Mail.Internals { - + internal class MAPISession { private static readonly IGXLogger log = GXLoggerFactory.GetLogger(); diff --git a/dotnet/src/dotnetframework/GxMail/MailMessage.cs b/dotnet/src/dotnetframework/GxMail/MailMessage.cs index e7afe0a91..c09eb4f1f 100644 --- a/dotnet/src/dotnetframework/GxMail/MailMessage.cs +++ b/dotnet/src/dotnetframework/GxMail/MailMessage.cs @@ -1,17 +1,16 @@ using System; using System.Collections; +using System.Collections.Concurrent; +using System.Collections.Generic; using System.IO; using System.Text; using System.Text.RegularExpressions; -using log4net; using System.Threading; using GeneXus.Utils; -using System.Collections.Generic; -using System.Collections.Concurrent; namespace GeneXus.Mail.Internals.Pop3 { - + internal class MailMessage { private static readonly IGXLogger log = GXLoggerFactory.GetLogger(); diff --git a/dotnet/src/dotnetframework/GxMail/Mentalis/RFC822EndReader.cs b/dotnet/src/dotnetframework/GxMail/Mentalis/RFC822EndReader.cs index 052f93e51..c15ee788f 100644 --- a/dotnet/src/dotnetframework/GxMail/Mentalis/RFC822EndReader.cs +++ b/dotnet/src/dotnetframework/GxMail/Mentalis/RFC822EndReader.cs @@ -1,7 +1,6 @@ using System; using System.IO; using System.Text; -using log4net; namespace GeneXus.Mail.Internals.Pop3 { diff --git a/dotnet/src/dotnetframework/GxMail/OutlookSession.cs b/dotnet/src/dotnetframework/GxMail/OutlookSession.cs index fc6d1aaf8..061ca6a41 100644 --- a/dotnet/src/dotnetframework/GxMail/OutlookSession.cs +++ b/dotnet/src/dotnetframework/GxMail/OutlookSession.cs @@ -1,13 +1,11 @@ using System; using System.IO; -using System.Collections; -using log4net; -using Outlook; using GeneXus.Utils; +using Outlook; namespace GeneXus.Mail.Internals { - + internal class OutlookSession { private static readonly IGXLogger log = GXLoggerFactory.GetLogger(); diff --git a/dotnet/src/dotnetframework/GxMail/POP3Session.cs b/dotnet/src/dotnetframework/GxMail/POP3Session.cs index f8e878428..cfc767353 100644 --- a/dotnet/src/dotnetframework/GxMail/POP3Session.cs +++ b/dotnet/src/dotnetframework/GxMail/POP3Session.cs @@ -1,19 +1,17 @@ using System; using System.IO; -using System.Text; +using System.Linq; using System.Net; using System.Net.Sockets; -using System.Threading; -using log4net; +using System.Text; using GeneXus.Mail.Internals.Pop3; -using Org.Mentalis.Security.Ssl; using Org.Mentalis.Security.Certificates; -using System.Linq; +using Org.Mentalis.Security.Ssl; namespace GeneXus.Mail.Internals { - - internal class POP3Session : Pop3SessionBase + + internal class POP3Session : Pop3SessionBase { private static readonly IGXLogger log = GXLoggerFactory.GetLogger(); private const string CRLF = "\r\n"; diff --git a/dotnet/src/dotnetframework/GxMail/POP3SessionOpenPop.cs b/dotnet/src/dotnetframework/GxMail/POP3SessionOpenPop.cs index 3545ddfb7..55894e69d 100644 --- a/dotnet/src/dotnetframework/GxMail/POP3SessionOpenPop.cs +++ b/dotnet/src/dotnetframework/GxMail/POP3SessionOpenPop.cs @@ -1,17 +1,16 @@ using System; using System.Collections.Generic; -using OpenPop.Pop3; -using OpenPop.Pop3.Exceptions; -using log4net; -using OpenPop.Mime; -using System.Net.Mail; using System.IO; -using GeneXus.Utils; +using System.Net.Mail; using System.Reflection; +using GeneXus.Utils; +using OpenPop.Mime; +using OpenPop.Pop3; +using OpenPop.Pop3.Exceptions; namespace GeneXus.Mail { - internal class POP3SessionOpenPop : Pop3SessionBase + internal class POP3SessionOpenPop : Pop3SessionBase { static readonly IGXLogger log = GXLoggerFactory.GetLogger(); diff --git a/dotnet/src/dotnetframework/GxMail/Pop3MailKit.cs b/dotnet/src/dotnetframework/GxMail/Pop3MailKit.cs index a7e9fd364..e2df4bcb3 100644 --- a/dotnet/src/dotnetframework/GxMail/Pop3MailKit.cs +++ b/dotnet/src/dotnetframework/GxMail/Pop3MailKit.cs @@ -1,13 +1,12 @@ using System; using System.Collections.Generic; +using System.IO; using System.Security.Authentication; -using log4net; +using GeneXus.Utils; using MailKit; -using MailKit.Security; using MailKit.Net.Pop3; +using MailKit.Security; using MimeKit; -using GeneXus.Utils; -using System.IO; namespace GeneXus.Mail { diff --git a/dotnet/src/dotnetframework/GxMail/Pop3SessionBase.cs b/dotnet/src/dotnetframework/GxMail/Pop3SessionBase.cs index 619d7d45e..50cb7ea6a 100644 --- a/dotnet/src/dotnetframework/GxMail/Pop3SessionBase.cs +++ b/dotnet/src/dotnetframework/GxMail/Pop3SessionBase.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using System.IO; using System.Text.RegularExpressions; -using log4net; namespace GeneXus.Mail { diff --git a/dotnet/src/dotnetframework/GxMail/SMTP/SmtpHelper.cs b/dotnet/src/dotnetframework/GxMail/SMTP/SmtpHelper.cs index 23642d907..93dacac98 100644 --- a/dotnet/src/dotnetframework/GxMail/SMTP/SmtpHelper.cs +++ b/dotnet/src/dotnetframework/GxMail/SMTP/SmtpHelper.cs @@ -1,5 +1,3 @@ -using GeneXus.Metadata; -using log4net; using System; using System.Net; using System.Net.Mail; @@ -34,7 +32,7 @@ public static bool ValidateConnection(SmtpClient smtp, string senderAddress, boo { senderAddress = (string.IsNullOrEmpty(senderAddress)) ? "test@gmail.com" : senderAddress; SmtpGetConnection(smtpTransportType, SmtpTransport, smtp); - var connection = SmtpConnectionField(SmtpTransport); + object connection = SmtpConnectionField(SmtpTransport); if (checkUnicodeSupport) { Type mailCommandType = ass.GetType(SMTP_MAIL_COMMAND_TYPE); diff --git a/dotnet/src/dotnetframework/GxMail/SMTPMailClient.cs b/dotnet/src/dotnetframework/GxMail/SMTPMailClient.cs index 6a2acfa79..8c1086aac 100644 --- a/dotnet/src/dotnetframework/GxMail/SMTPMailClient.cs +++ b/dotnet/src/dotnetframework/GxMail/SMTPMailClient.cs @@ -1,13 +1,12 @@ using System; -using System.Text; -using System.Net.Mail; using System.IO; -using log4net; +using System.Net.Mail; +using System.Text; using GeneXus.Mail.Smtp; namespace GeneXus.Mail { - internal class SMTPMailClient : ISMTPSession + internal class SMTPMailClient : ISMTPSession { private static readonly IGXLogger log = GXLoggerFactory.GetLogger(); diff --git a/dotnet/src/dotnetframework/GxMail/SMTPMailKit.cs b/dotnet/src/dotnetframework/GxMail/SMTPMailKit.cs index d1b710e15..651601626 100644 --- a/dotnet/src/dotnetframework/GxMail/SMTPMailKit.cs +++ b/dotnet/src/dotnetframework/GxMail/SMTPMailKit.cs @@ -1,11 +1,10 @@ using System; using System.IO; -using log4net; -using MimeKit; +using System.Net.Sockets; using MailKit; using MailKit.Net.Smtp; using MailKit.Security; -using System.Net.Sockets; +using MimeKit; namespace GeneXus.Mail { diff --git a/dotnet/src/dotnetframework/GxMail/SMTPSession.cs b/dotnet/src/dotnetframework/GxMail/SMTPSession.cs index 02de5d996..5201a4ec3 100644 --- a/dotnet/src/dotnetframework/GxMail/SMTPSession.cs +++ b/dotnet/src/dotnetframework/GxMail/SMTPSession.cs @@ -1,20 +1,19 @@ using System; +using System.Collections.Generic; +using System.Globalization; using System.IO; -using System.Text; using System.Net; using System.Net.Sockets; -using System.Globalization; -using log4net; -using GeneXus.Utils; +using System.Text; using GeneXus.Mail.Internals.Smtp; -using Org.Mentalis.Security.Ssl; +using GeneXus.Utils; using Org.Mentalis.Security.Certificates; -using System.Collections.Generic; +using Org.Mentalis.Security.Ssl; namespace GeneXus.Mail.Internals { - - internal class SMTPSession: ISMTPSession + + internal class SMTPSession: ISMTPSession { private static readonly IGXLogger log = GXLoggerFactory.GetLogger(); #region Mail Constants diff --git a/dotnet/src/dotnetframework/GxOffice/ExcelSpreadsheetGXWrapper.cs b/dotnet/src/dotnetframework/GxOffice/ExcelSpreadsheetGXWrapper.cs index cc839e38c..dd65d8849 100644 --- a/dotnet/src/dotnetframework/GxOffice/ExcelSpreadsheetGXWrapper.cs +++ b/dotnet/src/dotnetframework/GxOffice/ExcelSpreadsheetGXWrapper.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using GeneXus.MSOffice.Excel.Poi.Xssf; -using log4net; namespace GeneXus.MSOffice.Excel { diff --git a/dotnet/src/dotnetframework/GxOffice/poi/xssf/ExcelCells.cs b/dotnet/src/dotnetframework/GxOffice/poi/xssf/ExcelCells.cs index 135a5d14d..019fc95e7 100644 --- a/dotnet/src/dotnetframework/GxOffice/poi/xssf/ExcelCells.cs +++ b/dotnet/src/dotnetframework/GxOffice/poi/xssf/ExcelCells.cs @@ -2,7 +2,6 @@ using System; using GeneXus.MSOffice.Excel.Style; using GeneXus.Utils; -using log4net; using NPOI.OpenXmlFormats.Spreadsheet; using NPOI.SS.UserModel; using NPOI.SS.Util; diff --git a/dotnet/src/dotnetframework/GxPdfReportsCS/PDFReportCommon.cs b/dotnet/src/dotnetframework/GxPdfReportsCS/PDFReportCommon.cs index a0cee76a1..0bb0a83c8 100644 --- a/dotnet/src/dotnetframework/GxPdfReportsCS/PDFReportCommon.cs +++ b/dotnet/src/dotnetframework/GxPdfReportsCS/PDFReportCommon.cs @@ -1,25 +1,20 @@ using System; - -using System.IO; using System.Collections; -using System.Threading; -using System.Text; -using Microsoft.Win32; -using System.Runtime.InteropServices; -using System.Globalization; - -using System.util; -using System.Diagnostics; -using log4net; - -using GeneXus.Printer; using System.Collections.Generic; +using System.Diagnostics; +using System.Globalization; +using System.IO; +using System.Reflection; +using System.Runtime.InteropServices; using System.Security; +using System.Text; +using System.Threading; +using System.util; using GeneXus; +using GeneXus.Printer; using GeneXus.Utils; -using System.Reflection; -using GeneXus.Metadata; +using Microsoft.Win32; namespace com.genexus.reports { diff --git a/dotnet/src/dotnetframework/GxPdfReportsCS/PDFReportItext4.cs b/dotnet/src/dotnetframework/GxPdfReportsCS/PDFReportItext4.cs index 8e183e247..c84601f6b 100644 --- a/dotnet/src/dotnetframework/GxPdfReportsCS/PDFReportItext4.cs +++ b/dotnet/src/dotnetframework/GxPdfReportsCS/PDFReportItext4.cs @@ -10,7 +10,6 @@ using iTextSharp.text; using iTextSharp.text.html.simpleparser; using iTextSharp.text.pdf; -using log4net; namespace com.genexus.reports { diff --git a/dotnet/src/dotnetframework/GxPdfReportsCS/PdfReportInterface.cs b/dotnet/src/dotnetframework/GxPdfReportsCS/PdfReportInterface.cs index 5c677d48d..d7c71c5d2 100644 --- a/dotnet/src/dotnetframework/GxPdfReportsCS/PdfReportInterface.cs +++ b/dotnet/src/dotnetframework/GxPdfReportsCS/PdfReportInterface.cs @@ -1,5 +1,4 @@ using System.IO; -using log4net; namespace GeneXus.Printer { diff --git a/dotnet/src/dotnetframework/GxSearch/DocumentHandler.cs b/dotnet/src/dotnetframework/GxSearch/DocumentHandler.cs index a80904a8a..616d1d203 100644 --- a/dotnet/src/dotnetframework/GxSearch/DocumentHandler.cs +++ b/dotnet/src/dotnetframework/GxSearch/DocumentHandler.cs @@ -1,25 +1,21 @@ using System; using System.Collections; +using System.Collections.Concurrent; using System.IO; +using System.Reflection; +using System.Runtime.CompilerServices; using System.Text; - +using GeneXus.Search; using Lucene.Net.Analysis; using Lucene.Net.Analysis.Standard; -using Lucene.Net.Search.Highlight; using Lucene.Net.Index; using Lucene.Net.QueryParsers; using Lucene.Net.Search; - -using log4net; -using GeneXus.Search; -using System.Runtime.CompilerServices; -using System.Reflection; -using System.Collections.Concurrent; - +using Lucene.Net.Search.Highlight; using NUglify; using NUglify.Html; -using UglyToad.PdfPig.Content; using UglyToad.PdfPig; +using UglyToad.PdfPig.Content; namespace GeneXus.Utils { diff --git a/dotnet/src/dotnetframework/GxSearch/Indexer.cs b/dotnet/src/dotnetframework/GxSearch/Indexer.cs index 41bb64752..320db4629 100644 --- a/dotnet/src/dotnetframework/GxSearch/Indexer.cs +++ b/dotnet/src/dotnetframework/GxSearch/Indexer.cs @@ -1,23 +1,14 @@ using System; using System.Collections; using System.Collections.Generic; -using System.ComponentModel; using System.IO; -using System.Text; +using System.Security; using System.Threading; - +using GeneXus.Utils; +using Lucene.Net.Analysis; using Lucene.Net.Analysis.Standard; using Lucene.Net.Documents; using Lucene.Net.Index; -using Lucene.Net.Search; -using Lucene.Net.Store; - -using log4net; - -using GeneXus.Utils; -using Lucene.Net.Analysis; -using System.Globalization; -using System.Security; namespace GeneXus.Search { @@ -34,7 +25,7 @@ public sealed class Indexer private Thread worker; private Indexer() { - var folder = Settings.Instance.IndexFolder; + string folder = Settings.Instance.IndexFolder; GXLogging.Debug(log,"LUCENE_INDEX_DIRECTORY: " + folder); worker = new Thread(new ThreadStart(BackgroundIndexer)); worker.Start(); diff --git a/dotnet/src/dotnetframework/GxSearch/Searcher.cs b/dotnet/src/dotnetframework/GxSearch/Searcher.cs index 2013f428e..0352267dc 100644 --- a/dotnet/src/dotnetframework/GxSearch/Searcher.cs +++ b/dotnet/src/dotnetframework/GxSearch/Searcher.cs @@ -1,17 +1,9 @@ using System; -using System.Collections.Generic; -using System.Text; -using System.Text.RegularExpressions; - -using Lucene.Net.Analysis.Standard; -using Lucene.Net.QueryParsers; -using Lucene.Net.Search; - -using log4net; - +using System.Security; using GeneXus.Application; using Lucene.Net.Analysis; -using System.Security; +using Lucene.Net.QueryParsers; +using Lucene.Net.Search; namespace GeneXus.Search { diff --git a/dotnet/src/dotnetframework/GxSearch/Settings.cs b/dotnet/src/dotnetframework/GxSearch/Settings.cs index 85f049cbf..8c53915ac 100644 --- a/dotnet/src/dotnetframework/GxSearch/Settings.cs +++ b/dotnet/src/dotnetframework/GxSearch/Settings.cs @@ -3,8 +3,6 @@ using System.Security; using GeneXus.Configuration; -using log4net; - namespace GeneXus.Search { diff --git a/dotnet/src/dotnetframework/GxSearch/SpellChecker.cs b/dotnet/src/dotnetframework/GxSearch/SpellChecker.cs index db3cc170f..7b6e541d8 100644 --- a/dotnet/src/dotnetframework/GxSearch/SpellChecker.cs +++ b/dotnet/src/dotnetframework/GxSearch/SpellChecker.cs @@ -2,10 +2,7 @@ using System.IO; using System.Text; -using log4net; - using Lucene.Net.Index; -using Lucene.Net.Store; using SpellChecker.Net.Search.Spell; namespace GeneXus.Search diff --git a/dotnet/src/dotnetframework/GxWebSocket/WSHandler.cs b/dotnet/src/dotnetframework/GxWebSocket/WSHandler.cs index bb81262c5..ddf4f9fe4 100644 --- a/dotnet/src/dotnetframework/GxWebSocket/WSHandler.cs +++ b/dotnet/src/dotnetframework/GxWebSocket/WSHandler.cs @@ -9,7 +9,6 @@ using GeneXus.Services; using GeneXus.Utils; using Jayrock.Json; -using log4net; using Microsoft.Web.WebSockets; namespace GeneXus.Http.WebSocket diff --git a/dotnet/src/dotnetframework/Projects/StoreManager/Store/StoreManager.cs b/dotnet/src/dotnetframework/Projects/StoreManager/Store/StoreManager.cs index 87f7a08d9..ff8279c6d 100644 --- a/dotnet/src/dotnetframework/Projects/StoreManager/Store/StoreManager.cs +++ b/dotnet/src/dotnetframework/Projects/StoreManager/Store/StoreManager.cs @@ -1,13 +1,9 @@ using System; using System.Collections.Generic; -using System.Linq; -using System.Text; -using GeneXus.Utils; -using Jayrock.Json; -using GeneXus; -using log4net; using GeneXus.SD.Store.Model; using GeneXus.SD.Store.Platforms; +using GeneXus.Utils; +using Jayrock.Json; namespace GeneXus.SD.Store { diff --git a/dotnet/src/dotnetframework/Providers/Cache/GxRedis/GxRedis.cs b/dotnet/src/dotnetframework/Providers/Cache/GxRedis/GxRedis.cs index f15c789e9..7007d736a 100644 --- a/dotnet/src/dotnetframework/Providers/Cache/GxRedis/GxRedis.cs +++ b/dotnet/src/dotnetframework/Providers/Cache/GxRedis/GxRedis.cs @@ -1,17 +1,11 @@ using System; using System.Collections.Generic; -using System.IO; using System.Linq; -using System.Text.Json.Serialization; using System.Text.Json; -using System.Runtime.Serialization.Formatters.Binary; +using System.Threading.Tasks; using GeneXus.Services; using GeneXus.Utils; -using log4net; using StackExchange.Redis; -using System.Reflection; -using System.Security; -using System.Threading.Tasks; namespace GeneXus.Cache { @@ -213,7 +207,7 @@ private string Key(string cacheid, string key) } private IEnumerable Key(string cacheid, IEnumerable key) { - var prefix = KeyPrefix(cacheid); + long? prefix = KeyPrefix(cacheid); return key.Select(k => new RedisKey().Append(FormatKey(cacheid, k, prefix))); } private string FormatKey(string cacheid, string key, Nullable prefix) diff --git a/dotnet/src/dotnetframework/Providers/Storage/GXAmazonS3/ExternalProviderS3.cs b/dotnet/src/dotnetframework/Providers/Storage/GXAmazonS3/ExternalProviderS3.cs index 2a1dbe829..d31d262d9 100644 --- a/dotnet/src/dotnetframework/Providers/Storage/GXAmazonS3/ExternalProviderS3.cs +++ b/dotnet/src/dotnetframework/Providers/Storage/GXAmazonS3/ExternalProviderS3.cs @@ -1,16 +1,14 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Threading; using Amazon.Runtime; using Amazon.S3; using Amazon.S3.IO; using Amazon.S3.Model; - using Amazon.S3.Transfer; using GeneXus.Services; using GeneXus.Utils; -using log4net; -using System; -using System.Collections.Generic; -using System.IO; -using System.Threading; namespace GeneXus.Storage.GXAmazonS3 diff --git a/dotnet/src/extensions/Azure/Handlers/HttpHandler/GXHttpAzureContextAccessor.cs b/dotnet/src/extensions/Azure/Handlers/HttpHandler/GXHttpAzureContextAccessor.cs index 2a9e3c97a..1c3285d3f 100644 --- a/dotnet/src/extensions/Azure/Handlers/HttpHandler/GXHttpAzureContextAccessor.cs +++ b/dotnet/src/extensions/Azure/Handlers/HttpHandler/GXHttpAzureContextAccessor.cs @@ -6,13 +6,11 @@ using System.IO.Pipelines; using System.Linq; using System.Security.Claims; -using System.Text; using System.Text.Json.Nodes; using System.Threading; using System.Threading.Tasks; using GeneXus.Cache; using GeneXus.Utils; -using log4net; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http.Features; using Microsoft.Azure.Functions.Worker.Http;