From f8336e283ea87212c1b990c5a46a610bd9cd577e Mon Sep 17 00:00:00 2001 From: Hadi Khazaee Asl Date: Sun, 6 Sep 2026 00:17:56 +0330 Subject: [PATCH] apply sorting ... --- Configuration/XEventServiceConfiguration.cs | 2 +- DI/XDIHelperExtension.cs | 10 ++++------ Extensions/XEventServiceExtensions.cs | 4 ++-- Interfaces/IXProducerServiceBase.cs | 2 +- Interfaces/IXRabbitMQProducerService.cs | 2 +- Models/XEventMessage.cs | 2 +- Providers/XBaseEventConsumerBackgroundService.cs | 8 ++++---- Providers/XBaseEventProducerService.cs | 6 +++--- Providers/XEventServiceProvider.cs | 8 ++++---- Providers/XKafkaConsumerServiceBase.cs | 12 ++++++------ Providers/XKafkaProducerService.cs | 12 ++++++------ Providers/XRabbitMQConsumerServiceBase.cs | 14 +++++++------- Providers/XRabbitMQProducerService.cs | 12 ++++++------ Providers/XZeroMQConsumerServiceBase.cs | 14 +++++++------- Providers/XZeroMQProducerService.cs | 14 +++++++------- 15 files changed, 60 insertions(+), 62 deletions(-) diff --git a/Configuration/XEventServiceConfiguration.cs b/Configuration/XEventServiceConfiguration.cs index 6409b48..35ca099 100644 --- a/Configuration/XEventServiceConfiguration.cs +++ b/Configuration/XEventServiceConfiguration.cs @@ -1,5 +1,5 @@ -using xEventService.Constants; using xEventService.Models; +using xEventService.Constants; namespace xEventService.Configuration { diff --git a/DI/XDIHelperExtension.cs b/DI/XDIHelperExtension.cs index ca4a50d..ea134ca 100644 --- a/DI/XDIHelperExtension.cs +++ b/DI/XDIHelperExtension.cs @@ -1,13 +1,11 @@ using System; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; using xCommons.Extensions; -using xEventService.Configuration; +using xExceptions.Constants; using xEventService.Constants; using xEventService.Extensions; -using xEventService.Interfaces; -using xEventService.Providers; -using xExceptions.Constants; +using xEventService.Configuration; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.DependencyInjection; namespace xEventService.DI { diff --git a/Extensions/XEventServiceExtensions.cs b/Extensions/XEventServiceExtensions.cs index 22d6746..5b24d18 100644 --- a/Extensions/XEventServiceExtensions.cs +++ b/Extensions/XEventServiceExtensions.cs @@ -1,9 +1,9 @@ using System.Linq; using xCommons.Extensions; -using xEventService.Configuration; -using xEventService.Constants; using xEventService.Models; using xExceptions.Constants; +using xEventService.Constants; +using xEventService.Configuration; namespace xEventService.Extensions { diff --git a/Interfaces/IXProducerServiceBase.cs b/Interfaces/IXProducerServiceBase.cs index 6183bb7..7cc23bc 100644 --- a/Interfaces/IXProducerServiceBase.cs +++ b/Interfaces/IXProducerServiceBase.cs @@ -1,8 +1,8 @@ using System; using System.Threading; +using xEventService.Models; using System.Threading.Tasks; using xEventService.Constants; -using xEventService.Models; namespace xEventService.Interfaces { diff --git a/Interfaces/IXRabbitMQProducerService.cs b/Interfaces/IXRabbitMQProducerService.cs index a8794f4..879b649 100644 --- a/Interfaces/IXRabbitMQProducerService.cs +++ b/Interfaces/IXRabbitMQProducerService.cs @@ -1,6 +1,6 @@ using System.Threading; -using System.Threading.Tasks; using xEventService.Models; +using System.Threading.Tasks; namespace xEventService.Interfaces { diff --git a/Models/XEventMessage.cs b/Models/XEventMessage.cs index 51a69f6..0be9955 100644 --- a/Models/XEventMessage.cs +++ b/Models/XEventMessage.cs @@ -1,6 +1,6 @@ using System; -using System.Collections.Generic; using Newtonsoft.Json; +using System.Collections.Generic; namespace xEventService.Models { diff --git a/Providers/XBaseEventConsumerBackgroundService.cs b/Providers/XBaseEventConsumerBackgroundService.cs index f3051e7..cd1d338 100644 --- a/Providers/XBaseEventConsumerBackgroundService.cs +++ b/Providers/XBaseEventConsumerBackgroundService.cs @@ -1,11 +1,11 @@ using System; -using Microsoft.Extensions.Logging; -using xCommons.Extensions; using xCommons.Providers; -using xEventService.Configuration; +using xCommons.Extensions; +using xExceptions.Constants; using xEventService.Constants; using xEventService.Extensions; -using xExceptions.Constants; +using xEventService.Configuration; +using Microsoft.Extensions.Logging; namespace xEventService.Providers { diff --git a/Providers/XBaseEventProducerService.cs b/Providers/XBaseEventProducerService.cs index 2004bed..fca34d9 100644 --- a/Providers/XBaseEventProducerService.cs +++ b/Providers/XBaseEventProducerService.cs @@ -1,8 +1,8 @@ -using Microsoft.Extensions.Logging; using xCommons.Extensions; -using xEventService.Configuration; -using xEventService.Extensions; using xExceptions.Constants; +using xEventService.Extensions; +using xEventService.Configuration; +using Microsoft.Extensions.Logging; namespace xEventService.Providers { diff --git a/Providers/XEventServiceProvider.cs b/Providers/XEventServiceProvider.cs index 80f7fa0..f9e7aff 100644 --- a/Providers/XEventServiceProvider.cs +++ b/Providers/XEventServiceProvider.cs @@ -1,12 +1,12 @@ using System.Threading; -using System.Threading.Tasks; using xCommons.Extensions; -using xEventService.Configuration; +using xEventService.Models; +using xExceptions.Constants; +using System.Threading.Tasks; using xEventService.Constants; using xEventService.Extensions; using xEventService.Interfaces; -using xEventService.Models; -using xExceptions.Constants; +using xEventService.Configuration; namespace xEventService.Providers { diff --git a/Providers/XKafkaConsumerServiceBase.cs b/Providers/XKafkaConsumerServiceBase.cs index 875e22e..ffcbd02 100644 --- a/Providers/XKafkaConsumerServiceBase.cs +++ b/Providers/XKafkaConsumerServiceBase.cs @@ -1,14 +1,14 @@ using System; -using System.Threading; -using System.Threading.Tasks; using Confluent.Kafka; -using Microsoft.Extensions.Logging; +using System.Threading; using xCommons.Extensions; -using xEventService.Configuration; -using xEventService.Constants; -using xEventService.Extensions; using xEventService.Models; using xExceptions.Constants; +using System.Threading.Tasks; +using xEventService.Constants; +using xEventService.Extensions; +using xEventService.Configuration; +using Microsoft.Extensions.Logging; namespace xEventService.Providers { diff --git a/Providers/XKafkaProducerService.cs b/Providers/XKafkaProducerService.cs index f06963e..4bad3df 100644 --- a/Providers/XKafkaProducerService.cs +++ b/Providers/XKafkaProducerService.cs @@ -1,15 +1,15 @@ +using System; +using Confluent.Kafka; +using System.Threading; using xCommons.Extensions; +using xEventService.Models; using xExceptions.Constants; +using System.Threading.Tasks; +using xEventService.Constants; using xEventService.Extensions; using xEventService.Interfaces; using xEventService.Configuration; -using xEventService.Models; -using Confluent.Kafka; using Microsoft.Extensions.Logging; -using System.Threading.Tasks; -using System.Threading; -using xEventService.Constants; -using System; namespace xEventService.Providers { diff --git a/Providers/XRabbitMQConsumerServiceBase.cs b/Providers/XRabbitMQConsumerServiceBase.cs index b093348..e8ce5eb 100644 --- a/Providers/XRabbitMQConsumerServiceBase.cs +++ b/Providers/XRabbitMQConsumerServiceBase.cs @@ -1,16 +1,16 @@ using System; using System.Text; -using System.Threading; -using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using RabbitMQ.Client; -using RabbitMQ.Client.Events; +using System.Threading; using xCommons.Extensions; -using xEventService.Configuration; -using xEventService.Constants; -using xEventService.Extensions; using xEventService.Models; using xExceptions.Constants; +using System.Threading.Tasks; +using RabbitMQ.Client.Events; +using xEventService.Constants; +using xEventService.Extensions; +using xEventService.Configuration; +using Microsoft.Extensions.Logging; namespace xEventService.Providers { diff --git a/Providers/XRabbitMQProducerService.cs b/Providers/XRabbitMQProducerService.cs index eb83820..4b6bf76 100644 --- a/Providers/XRabbitMQProducerService.cs +++ b/Providers/XRabbitMQProducerService.cs @@ -1,16 +1,16 @@ using System; using System.Text; -using System.Threading; -using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using RabbitMQ.Client; +using System.Threading; using xCommons.Extensions; -using xEventService.Configuration; +using xEventService.Models; +using xExceptions.Constants; +using System.Threading.Tasks; using xEventService.Constants; using xEventService.Extensions; using xEventService.Interfaces; -using xEventService.Models; -using xExceptions.Constants; +using xEventService.Configuration; +using Microsoft.Extensions.Logging; namespace xEventService.Providers { diff --git a/Providers/XZeroMQConsumerServiceBase.cs b/Providers/XZeroMQConsumerServiceBase.cs index 763f96f..1ce3048 100644 --- a/Providers/XZeroMQConsumerServiceBase.cs +++ b/Providers/XZeroMQConsumerServiceBase.cs @@ -1,16 +1,16 @@ +using NetMQ; using System; using System.Text; -using System.Threading; -using System.Threading.Tasks; -using Microsoft.Extensions.Logging; -using NetMQ; using NetMQ.Sockets; +using System.Threading; using xCommons.Extensions; -using xEventService.Configuration; -using xEventService.Constants; -using xEventService.Extensions; using xEventService.Models; using xExceptions.Constants; +using System.Threading.Tasks; +using xEventService.Constants; +using xEventService.Extensions; +using xEventService.Configuration; +using Microsoft.Extensions.Logging; namespace xEventService.Providers { diff --git a/Providers/XZeroMQProducerService.cs b/Providers/XZeroMQProducerService.cs index c38c44d..02cd626 100644 --- a/Providers/XZeroMQProducerService.cs +++ b/Providers/XZeroMQProducerService.cs @@ -1,17 +1,17 @@ +using NetMQ; using System; using System.Text; -using System.Threading; -using System.Threading.Tasks; -using Microsoft.Extensions.Logging; -using NetMQ; using NetMQ.Sockets; +using System.Threading; using xCommons.Extensions; -using xEventService.Configuration; +using xEventService.Models; +using xExceptions.Constants; +using System.Threading.Tasks; using xEventService.Constants; using xEventService.Extensions; using xEventService.Interfaces; -using xEventService.Models; -using xExceptions.Constants; +using xEventService.Configuration; +using Microsoft.Extensions.Logging; namespace xEventService.Providers {