From 15ace8c8d82f1fe113a0d7dfe0c223c5aac66b33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaros=C5=82aw=20Armatys?= Date: Tue, 13 Aug 2024 18:08:18 +0200 Subject: [PATCH] 114: Moved Correlation package to SOFTURE project --- API/ASSISTENTE.API/ASSISTENTE.API.csproj | 1 - .../Common/Extensions/CommonExtensions.cs | 2 +- .../RequestContextLoggingMiddleware.cs | 8 ++++---- .../ASSISTENTE.Application.Abstractions.csproj | 4 ++-- .../ASSISTENTE.Application.Middlewares.csproj | 2 +- .../ASSISTENTE.Client.Internal.csproj | 2 +- .../ASSISTENTE.Common.Authentication.csproj | 2 +- .../ASSISTENTE.Common.Correlation.csproj | 14 -------------- .../Consts/CorrelationConsts.cs | 6 ------ .../DependencyInjection.cs | 15 --------------- .../Generators/CorrelationGenerator.cs | 8 -------- .../Providers/CorrelationProvider.cs | 18 ------------------ .../ValueObjects/CorrelationId.cs | 10 ---------- .../ASSISTENTE.Common.Logging.csproj | 4 ++-- .../ASSISTENTE.Common.Observability.csproj | 2 +- ...SSISTENTE.Contract.Messages.Internal.csproj | 2 +- ...SSISTENTE.Contract.Requests.Internal.csproj | 2 +- .../ASSISTENTE.DB.Upgrade.csproj | 2 +- API/ASSISTENTE.Domain/ASSISTENTE.Domain.csproj | 2 +- ...ASSISTENTE.Infrastructure.CodeParser.csproj | 2 +- ...ASSISTENTE.Infrastructure.Embeddings.csproj | 4 ++-- .../ASSISTENTE.Infrastructure.LLM.csproj | 4 ++-- ...STENTE.Infrastructure.MarkDownParser.csproj | 2 +- ...TENTE.Infrastructure.PromptGenerator.csproj | 4 ++-- .../ASSISTENTE.Infrastructure.Qdrant.csproj | 4 ++-- .../ASSISTENTE.Language.csproj | 2 +- .../ASSISTENTE.MessageBroker.Rabbit.csproj | 7 ++----- .../Filters/ContextConsumeLoggingFilter.cs | 9 ++++----- .../Filters/ContextPublishLoggingFilter.cs | 4 ++-- ...ASSISTENTE.Persistence.Configuration.csproj | 4 ++-- .../ASSISTENTE.UI.Brokers.csproj | 4 ++-- .../ASSISTENTE.UI.Http.csproj | 5 ++++- .../RequestContextLoggingMiddleware.cs | 4 ++-- .../ASSISTENTE.Worker.Sync.csproj | 1 - .../Common/Bases/ResultConsumerBase.cs | 2 -- .../Common/Exceptions/ConsumeException.cs | 2 -- .../Common/Extensions/CommonExtensions.cs | 4 +--- .../Common/Extensions/ModuleExtensions.cs | 1 - .../OnCreateEmbeddingsMessageConsumer.cs | 1 - .../Consumers/OnFindFilesMessageConsumer.cs | 1 - .../OnFindResourcesMessageConsumer.cs | 1 - .../OnGenerateAnswerMessageConsumer.cs | 1 - ...OnNotifyQuestionReadinessMessageConsumer.cs | 1 - .../OnResolveContextMessageConsumer.cs | 1 - API/ASSISTENTE.Worker.Sync/Program.cs | 2 -- API/ASSISTENTE.sln | 7 ------- 46 files changed, 47 insertions(+), 143 deletions(-) delete mode 100644 API/ASSISTENTE.Common.Correlation/ASSISTENTE.Common.Correlation.csproj delete mode 100644 API/ASSISTENTE.Common.Correlation/Consts/CorrelationConsts.cs delete mode 100644 API/ASSISTENTE.Common.Correlation/DependencyInjection.cs delete mode 100644 API/ASSISTENTE.Common.Correlation/Generators/CorrelationGenerator.cs delete mode 100644 API/ASSISTENTE.Common.Correlation/Providers/CorrelationProvider.cs delete mode 100644 API/ASSISTENTE.Common.Correlation/ValueObjects/CorrelationId.cs diff --git a/API/ASSISTENTE.API/ASSISTENTE.API.csproj b/API/ASSISTENTE.API/ASSISTENTE.API.csproj index 4ebd259..300b60e 100644 --- a/API/ASSISTENTE.API/ASSISTENTE.API.csproj +++ b/API/ASSISTENTE.API/ASSISTENTE.API.csproj @@ -24,7 +24,6 @@ - diff --git a/API/ASSISTENTE.API/Common/Extensions/CommonExtensions.cs b/API/ASSISTENTE.API/Common/Extensions/CommonExtensions.cs index 5d14d5d..ef37171 100644 --- a/API/ASSISTENTE.API/Common/Extensions/CommonExtensions.cs +++ b/API/ASSISTENTE.API/Common/Extensions/CommonExtensions.cs @@ -1,12 +1,12 @@ using ASSISTENTE.Common.Authentication; using ASSISTENTE.Common.Authentication.Settings; -using ASSISTENTE.Common.Correlation; using ASSISTENTE.Common.Logging; using ASSISTENTE.Common.Logging.Settings; using ASSISTENTE.Common.Observability; using ASSISTENTE.Common.Observability.Settings; using ASSISTENTE.MessageBroker.Rabbit; using ASSISTENTE.MessageBroker.Rabbit.Settings; +using SOFTURE.Common.Correlation; using SOFTURE.Settings.Extensions; namespace ASSISTENTE.API.Common.Extensions; diff --git a/API/ASSISTENTE.API/Common/Middlewares/RequestContextLoggingMiddleware.cs b/API/ASSISTENTE.API/Common/Middlewares/RequestContextLoggingMiddleware.cs index 859ddaa..11e4448 100644 --- a/API/ASSISTENTE.API/Common/Middlewares/RequestContextLoggingMiddleware.cs +++ b/API/ASSISTENTE.API/Common/Middlewares/RequestContextLoggingMiddleware.cs @@ -1,8 +1,8 @@ -using ASSISTENTE.Common.Correlation.Consts; -using ASSISTENTE.Common.Correlation.Generators; -using ASSISTENTE.Common.Correlation.Providers; -using ASSISTENTE.Common.Correlation.ValueObjects; using Serilog.Context; +using SOFTURE.Common.Correlation.Consts; +using SOFTURE.Common.Correlation.Generators; +using SOFTURE.Common.Correlation.Providers; +using SOFTURE.Common.Correlation.ValueObjects; namespace ASSISTENTE.API.Common.Middlewares; diff --git a/API/ASSISTENTE.Application.Abstractions/ASSISTENTE.Application.Abstractions.csproj b/API/ASSISTENTE.Application.Abstractions/ASSISTENTE.Application.Abstractions.csproj index 0a12ea5..0eda938 100644 --- a/API/ASSISTENTE.Application.Abstractions/ASSISTENTE.Application.Abstractions.csproj +++ b/API/ASSISTENTE.Application.Abstractions/ASSISTENTE.Application.Abstractions.csproj @@ -12,8 +12,8 @@ - - + + diff --git a/API/ASSISTENTE.Application.Middlewares/ASSISTENTE.Application.Middlewares.csproj b/API/ASSISTENTE.Application.Middlewares/ASSISTENTE.Application.Middlewares.csproj index 5d24686..8a6ef46 100644 --- a/API/ASSISTENTE.Application.Middlewares/ASSISTENTE.Application.Middlewares.csproj +++ b/API/ASSISTENTE.Application.Middlewares/ASSISTENTE.Application.Middlewares.csproj @@ -9,7 +9,7 @@ - + diff --git a/API/ASSISTENTE.Client.Internal/ASSISTENTE.Client.Internal.csproj b/API/ASSISTENTE.Client.Internal/ASSISTENTE.Client.Internal.csproj index 8957a68..c390d7f 100644 --- a/API/ASSISTENTE.Client.Internal/ASSISTENTE.Client.Internal.csproj +++ b/API/ASSISTENTE.Client.Internal/ASSISTENTE.Client.Internal.csproj @@ -12,7 +12,7 @@ - + diff --git a/API/ASSISTENTE.Common.Authentication/ASSISTENTE.Common.Authentication.csproj b/API/ASSISTENTE.Common.Authentication/ASSISTENTE.Common.Authentication.csproj index d95c5c6..b2413e3 100644 --- a/API/ASSISTENTE.Common.Authentication/ASSISTENTE.Common.Authentication.csproj +++ b/API/ASSISTENTE.Common.Authentication/ASSISTENTE.Common.Authentication.csproj @@ -8,7 +8,7 @@ - + diff --git a/API/ASSISTENTE.Common.Correlation/ASSISTENTE.Common.Correlation.csproj b/API/ASSISTENTE.Common.Correlation/ASSISTENTE.Common.Correlation.csproj deleted file mode 100644 index f0d7107..0000000 --- a/API/ASSISTENTE.Common.Correlation/ASSISTENTE.Common.Correlation.csproj +++ /dev/null @@ -1,14 +0,0 @@ - - - - net8.0 - enable - enable - - - - - - - - diff --git a/API/ASSISTENTE.Common.Correlation/Consts/CorrelationConsts.cs b/API/ASSISTENTE.Common.Correlation/Consts/CorrelationConsts.cs deleted file mode 100644 index bd09330..0000000 --- a/API/ASSISTENTE.Common.Correlation/Consts/CorrelationConsts.cs +++ /dev/null @@ -1,6 +0,0 @@ -namespace ASSISTENTE.Common.Correlation.Consts; - -public static class CorrelationConsts -{ - public const string CorrelationHeader = "X-Correlation-Id"; -} \ No newline at end of file diff --git a/API/ASSISTENTE.Common.Correlation/DependencyInjection.cs b/API/ASSISTENTE.Common.Correlation/DependencyInjection.cs deleted file mode 100644 index 30a29d2..0000000 --- a/API/ASSISTENTE.Common.Correlation/DependencyInjection.cs +++ /dev/null @@ -1,15 +0,0 @@ -using ASSISTENTE.Common.Correlation.Providers; -using Microsoft.Extensions.DependencyInjection; - -namespace ASSISTENTE.Common.Correlation -{ - public static class DependencyInjection - { - public static IServiceCollection AddCommonCorrelationProvider(this IServiceCollection services) - { - services.AddScoped(); - - return services; - } - } -} \ No newline at end of file diff --git a/API/ASSISTENTE.Common.Correlation/Generators/CorrelationGenerator.cs b/API/ASSISTENTE.Common.Correlation/Generators/CorrelationGenerator.cs deleted file mode 100644 index 7ce67f4..0000000 --- a/API/ASSISTENTE.Common.Correlation/Generators/CorrelationGenerator.cs +++ /dev/null @@ -1,8 +0,0 @@ -using ASSISTENTE.Common.Correlation.ValueObjects; - -namespace ASSISTENTE.Common.Correlation.Generators; - -public static class CorrelationGenerator -{ - public static CorrelationId Generate() => new(Guid.NewGuid()); -} \ No newline at end of file diff --git a/API/ASSISTENTE.Common.Correlation/Providers/CorrelationProvider.cs b/API/ASSISTENTE.Common.Correlation/Providers/CorrelationProvider.cs deleted file mode 100644 index 5395564..0000000 --- a/API/ASSISTENTE.Common.Correlation/Providers/CorrelationProvider.cs +++ /dev/null @@ -1,18 +0,0 @@ -using ASSISTENTE.Common.Correlation.ValueObjects; - -namespace ASSISTENTE.Common.Correlation.Providers; - -public interface ICorrelationProvider -{ - CorrelationId? Get(); - void Set(CorrelationId correlationId); -} - -public sealed class CorrelationProvider : ICorrelationProvider -{ - private CorrelationId? CorrelationId { get; set; } - - public CorrelationId? Get() => CorrelationId; - - public void Set(CorrelationId correlationId) => CorrelationId = correlationId; -} \ No newline at end of file diff --git a/API/ASSISTENTE.Common.Correlation/ValueObjects/CorrelationId.cs b/API/ASSISTENTE.Common.Correlation/ValueObjects/CorrelationId.cs deleted file mode 100644 index 128f457..0000000 --- a/API/ASSISTENTE.Common.Correlation/ValueObjects/CorrelationId.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace ASSISTENTE.Common.Correlation.ValueObjects; - -public sealed record CorrelationId(Guid Value) -{ - public static implicit operator CorrelationId(Guid value) => new(value); - public static implicit operator Guid(CorrelationId id) => id.Value; - public static implicit operator string(CorrelationId id) => id.Value.ToString(); - - public static CorrelationId Parse(string value) => new(Guid.Parse(value)); -} \ No newline at end of file diff --git a/API/ASSISTENTE.Common.Logging/ASSISTENTE.Common.Logging.csproj b/API/ASSISTENTE.Common.Logging/ASSISTENTE.Common.Logging.csproj index 544cbea..736c5da 100644 --- a/API/ASSISTENTE.Common.Logging/ASSISTENTE.Common.Logging.csproj +++ b/API/ASSISTENTE.Common.Logging/ASSISTENTE.Common.Logging.csproj @@ -12,8 +12,8 @@ - - + + diff --git a/API/ASSISTENTE.Common.Observability/ASSISTENTE.Common.Observability.csproj b/API/ASSISTENTE.Common.Observability/ASSISTENTE.Common.Observability.csproj index a28918e..cc47d2f 100644 --- a/API/ASSISTENTE.Common.Observability/ASSISTENTE.Common.Observability.csproj +++ b/API/ASSISTENTE.Common.Observability/ASSISTENTE.Common.Observability.csproj @@ -15,7 +15,7 @@ - + diff --git a/API/ASSISTENTE.Contract.Messages.Internal/ASSISTENTE.Contract.Messages.Internal.csproj b/API/ASSISTENTE.Contract.Messages.Internal/ASSISTENTE.Contract.Messages.Internal.csproj index 540c96b..239fa05 100644 --- a/API/ASSISTENTE.Contract.Messages.Internal/ASSISTENTE.Contract.Messages.Internal.csproj +++ b/API/ASSISTENTE.Contract.Messages.Internal/ASSISTENTE.Contract.Messages.Internal.csproj @@ -7,7 +7,7 @@ - + diff --git a/API/ASSISTENTE.Contract.Requests.Internal/ASSISTENTE.Contract.Requests.Internal.csproj b/API/ASSISTENTE.Contract.Requests.Internal/ASSISTENTE.Contract.Requests.Internal.csproj index dd8a875..8460e14 100644 --- a/API/ASSISTENTE.Contract.Requests.Internal/ASSISTENTE.Contract.Requests.Internal.csproj +++ b/API/ASSISTENTE.Contract.Requests.Internal/ASSISTENTE.Contract.Requests.Internal.csproj @@ -11,7 +11,7 @@ - + diff --git a/API/ASSISTENTE.DB.Upgrade/ASSISTENTE.DB.Upgrade.csproj b/API/ASSISTENTE.DB.Upgrade/ASSISTENTE.DB.Upgrade.csproj index 670a042..c96fa75 100644 --- a/API/ASSISTENTE.DB.Upgrade/ASSISTENTE.DB.Upgrade.csproj +++ b/API/ASSISTENTE.DB.Upgrade/ASSISTENTE.DB.Upgrade.csproj @@ -20,7 +20,7 @@ - + diff --git a/API/ASSISTENTE.Domain/ASSISTENTE.Domain.csproj b/API/ASSISTENTE.Domain/ASSISTENTE.Domain.csproj index dac66d0..ceab860 100644 --- a/API/ASSISTENTE.Domain/ASSISTENTE.Domain.csproj +++ b/API/ASSISTENTE.Domain/ASSISTENTE.Domain.csproj @@ -16,7 +16,7 @@ - + diff --git a/API/ASSISTENTE.Infrastructure.CodeParser/ASSISTENTE.Infrastructure.CodeParser.csproj b/API/ASSISTENTE.Infrastructure.CodeParser/ASSISTENTE.Infrastructure.CodeParser.csproj index d33b71b..8c0773d 100644 --- a/API/ASSISTENTE.Infrastructure.CodeParser/ASSISTENTE.Infrastructure.CodeParser.csproj +++ b/API/ASSISTENTE.Infrastructure.CodeParser/ASSISTENTE.Infrastructure.CodeParser.csproj @@ -9,7 +9,7 @@ - + diff --git a/API/ASSISTENTE.Infrastructure.Embeddings/ASSISTENTE.Infrastructure.Embeddings.csproj b/API/ASSISTENTE.Infrastructure.Embeddings/ASSISTENTE.Infrastructure.Embeddings.csproj index 911b508..0aa1594 100644 --- a/API/ASSISTENTE.Infrastructure.Embeddings/ASSISTENTE.Infrastructure.Embeddings.csproj +++ b/API/ASSISTENTE.Infrastructure.Embeddings/ASSISTENTE.Infrastructure.Embeddings.csproj @@ -9,8 +9,8 @@ - - + + diff --git a/API/ASSISTENTE.Infrastructure.LLM/ASSISTENTE.Infrastructure.LLM.csproj b/API/ASSISTENTE.Infrastructure.LLM/ASSISTENTE.Infrastructure.LLM.csproj index 8997d3f..0914eb4 100644 --- a/API/ASSISTENTE.Infrastructure.LLM/ASSISTENTE.Infrastructure.LLM.csproj +++ b/API/ASSISTENTE.Infrastructure.LLM/ASSISTENTE.Infrastructure.LLM.csproj @@ -9,8 +9,8 @@ - - + + diff --git a/API/ASSISTENTE.Infrastructure.MarkDownParser/ASSISTENTE.Infrastructure.MarkDownParser.csproj b/API/ASSISTENTE.Infrastructure.MarkDownParser/ASSISTENTE.Infrastructure.MarkDownParser.csproj index 0e75232..6994aa4 100644 --- a/API/ASSISTENTE.Infrastructure.MarkDownParser/ASSISTENTE.Infrastructure.MarkDownParser.csproj +++ b/API/ASSISTENTE.Infrastructure.MarkDownParser/ASSISTENTE.Infrastructure.MarkDownParser.csproj @@ -9,7 +9,7 @@ - + diff --git a/API/ASSISTENTE.Infrastructure.PromptGenerator/ASSISTENTE.Infrastructure.PromptGenerator.csproj b/API/ASSISTENTE.Infrastructure.PromptGenerator/ASSISTENTE.Infrastructure.PromptGenerator.csproj index f83308d..9086254 100644 --- a/API/ASSISTENTE.Infrastructure.PromptGenerator/ASSISTENTE.Infrastructure.PromptGenerator.csproj +++ b/API/ASSISTENTE.Infrastructure.PromptGenerator/ASSISTENTE.Infrastructure.PromptGenerator.csproj @@ -11,8 +11,8 @@ - - + + diff --git a/API/ASSISTENTE.Infrastructure.Qdrant/ASSISTENTE.Infrastructure.Qdrant.csproj b/API/ASSISTENTE.Infrastructure.Qdrant/ASSISTENTE.Infrastructure.Qdrant.csproj index 9fc9ef1..fd42e6e 100644 --- a/API/ASSISTENTE.Infrastructure.Qdrant/ASSISTENTE.Infrastructure.Qdrant.csproj +++ b/API/ASSISTENTE.Infrastructure.Qdrant/ASSISTENTE.Infrastructure.Qdrant.csproj @@ -9,8 +9,8 @@ - - + + diff --git a/API/ASSISTENTE.Language/ASSISTENTE.Language.csproj b/API/ASSISTENTE.Language/ASSISTENTE.Language.csproj index 7c727d6..a21b528 100644 --- a/API/ASSISTENTE.Language/ASSISTENTE.Language.csproj +++ b/API/ASSISTENTE.Language/ASSISTENTE.Language.csproj @@ -7,7 +7,7 @@ - + diff --git a/API/ASSISTENTE.MessageBroker.Rabbit/ASSISTENTE.MessageBroker.Rabbit.csproj b/API/ASSISTENTE.MessageBroker.Rabbit/ASSISTENTE.MessageBroker.Rabbit.csproj index 3921f1e..64a7f8d 100644 --- a/API/ASSISTENTE.MessageBroker.Rabbit/ASSISTENTE.MessageBroker.Rabbit.csproj +++ b/API/ASSISTENTE.MessageBroker.Rabbit/ASSISTENTE.MessageBroker.Rabbit.csproj @@ -10,12 +10,9 @@ + - - - - - + diff --git a/API/ASSISTENTE.MessageBroker.Rabbit/Filters/ContextConsumeLoggingFilter.cs b/API/ASSISTENTE.MessageBroker.Rabbit/Filters/ContextConsumeLoggingFilter.cs index 90ce028..3b70922 100644 --- a/API/ASSISTENTE.MessageBroker.Rabbit/Filters/ContextConsumeLoggingFilter.cs +++ b/API/ASSISTENTE.MessageBroker.Rabbit/Filters/ContextConsumeLoggingFilter.cs @@ -1,9 +1,8 @@ -using ASSISTENTE.Common.Correlation.Consts; -using ASSISTENTE.Common.Correlation.Generators; -using ASSISTENTE.Common.Correlation.Providers; -using ASSISTENTE.Common.Correlation.ValueObjects; using MassTransit; - +using SOFTURE.Common.Correlation.Consts; +using SOFTURE.Common.Correlation.Generators; +using SOFTURE.Common.Correlation.Providers; +using SOFTURE.Common.Correlation.ValueObjects; using LogContext = Serilog.Context.LogContext; namespace ASSISTENTE.MessageBroker.Rabbit.Filters; diff --git a/API/ASSISTENTE.MessageBroker.Rabbit/Filters/ContextPublishLoggingFilter.cs b/API/ASSISTENTE.MessageBroker.Rabbit/Filters/ContextPublishLoggingFilter.cs index 6983be4..1edd0d0 100644 --- a/API/ASSISTENTE.MessageBroker.Rabbit/Filters/ContextPublishLoggingFilter.cs +++ b/API/ASSISTENTE.MessageBroker.Rabbit/Filters/ContextPublishLoggingFilter.cs @@ -1,6 +1,6 @@ -using ASSISTENTE.Common.Correlation.Consts; -using ASSISTENTE.Common.Correlation.Providers; using MassTransit; +using SOFTURE.Common.Correlation.Consts; +using SOFTURE.Common.Correlation.Providers; namespace ASSISTENTE.MessageBroker.Rabbit.Filters; diff --git a/API/ASSISTENTE.Persistence.Configuration/ASSISTENTE.Persistence.Configuration.csproj b/API/ASSISTENTE.Persistence.Configuration/ASSISTENTE.Persistence.Configuration.csproj index ba8811f..f3b7b09 100644 --- a/API/ASSISTENTE.Persistence.Configuration/ASSISTENTE.Persistence.Configuration.csproj +++ b/API/ASSISTENTE.Persistence.Configuration/ASSISTENTE.Persistence.Configuration.csproj @@ -15,8 +15,8 @@ - - + + diff --git a/API/ASSISTENTE.UI.Brokers/ASSISTENTE.UI.Brokers.csproj b/API/ASSISTENTE.UI.Brokers/ASSISTENTE.UI.Brokers.csproj index 7008675..12177a3 100644 --- a/API/ASSISTENTE.UI.Brokers/ASSISTENTE.UI.Brokers.csproj +++ b/API/ASSISTENTE.UI.Brokers/ASSISTENTE.UI.Brokers.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/API/ASSISTENTE.UI.Http/ASSISTENTE.UI.Http.csproj b/API/ASSISTENTE.UI.Http/ASSISTENTE.UI.Http.csproj index c060b5d..fa533a3 100644 --- a/API/ASSISTENTE.UI.Http/ASSISTENTE.UI.Http.csproj +++ b/API/ASSISTENTE.UI.Http/ASSISTENTE.UI.Http.csproj @@ -7,8 +7,11 @@ - + + + + diff --git a/API/ASSISTENTE.UI.Http/Middlewares/RequestContextLoggingMiddleware.cs b/API/ASSISTENTE.UI.Http/Middlewares/RequestContextLoggingMiddleware.cs index 7e09fc9..8a75bc8 100644 --- a/API/ASSISTENTE.UI.Http/Middlewares/RequestContextLoggingMiddleware.cs +++ b/API/ASSISTENTE.UI.Http/Middlewares/RequestContextLoggingMiddleware.cs @@ -1,5 +1,5 @@ -using ASSISTENTE.Common.Correlation.Consts; -using ASSISTENTE.Common.Correlation.Generators; +using SOFTURE.Common.Correlation.Consts; +using SOFTURE.Common.Correlation.Generators; namespace ASSISTENTE.UI.Http.Middlewares; diff --git a/API/ASSISTENTE.Worker.Sync/ASSISTENTE.Worker.Sync.csproj b/API/ASSISTENTE.Worker.Sync/ASSISTENTE.Worker.Sync.csproj index 9b5391b..78326b8 100644 --- a/API/ASSISTENTE.Worker.Sync/ASSISTENTE.Worker.Sync.csproj +++ b/API/ASSISTENTE.Worker.Sync/ASSISTENTE.Worker.Sync.csproj @@ -15,7 +15,6 @@ - diff --git a/API/ASSISTENTE.Worker.Sync/Common/Bases/ResultConsumerBase.cs b/API/ASSISTENTE.Worker.Sync/Common/Bases/ResultConsumerBase.cs index 7234a10..50af2c6 100644 --- a/API/ASSISTENTE.Worker.Sync/Common/Bases/ResultConsumerBase.cs +++ b/API/ASSISTENTE.Worker.Sync/Common/Bases/ResultConsumerBase.cs @@ -1,9 +1,7 @@ -using System.Threading.Tasks; using ASSISTENTE.Worker.Sync.Common.Exceptions; using CSharpFunctionalExtensions; using MassTransit; using MediatR; -using Microsoft.Extensions.Logging; using SOFTURE.Contract.Common.Messaging; namespace ASSISTENTE.Worker.Sync.Common.Bases; diff --git a/API/ASSISTENTE.Worker.Sync/Common/Exceptions/ConsumeException.cs b/API/ASSISTENTE.Worker.Sync/Common/Exceptions/ConsumeException.cs index 36c710e..ec2c01f 100644 --- a/API/ASSISTENTE.Worker.Sync/Common/Exceptions/ConsumeException.cs +++ b/API/ASSISTENTE.Worker.Sync/Common/Exceptions/ConsumeException.cs @@ -1,5 +1,3 @@ -using System; - namespace ASSISTENTE.Worker.Sync.Common.Exceptions; internal sealed class ConsumeException(string message) : Exception($"Consumed failed: {message}"); \ No newline at end of file diff --git a/API/ASSISTENTE.Worker.Sync/Common/Extensions/CommonExtensions.cs b/API/ASSISTENTE.Worker.Sync/Common/Extensions/CommonExtensions.cs index e006738..0b0e946 100644 --- a/API/ASSISTENTE.Worker.Sync/Common/Extensions/CommonExtensions.cs +++ b/API/ASSISTENTE.Worker.Sync/Common/Extensions/CommonExtensions.cs @@ -1,13 +1,11 @@ using System.Reflection; -using ASSISTENTE.Common.Correlation; using ASSISTENTE.Common.Logging; using ASSISTENTE.Common.Logging.Settings; using ASSISTENTE.Common.Observability; using ASSISTENTE.Common.Observability.Settings; using ASSISTENTE.MessageBroker.Rabbit; using ASSISTENTE.MessageBroker.Rabbit.Settings; -using Microsoft.AspNetCore.Builder; -using Microsoft.Extensions.Configuration; +using SOFTURE.Common.Correlation; using SOFTURE.Settings.Extensions; namespace ASSISTENTE.Worker.Sync.Common.Extensions; diff --git a/API/ASSISTENTE.Worker.Sync/Common/Extensions/ModuleExtensions.cs b/API/ASSISTENTE.Worker.Sync/Common/Extensions/ModuleExtensions.cs index f3a2f48..9c5148d 100644 --- a/API/ASSISTENTE.Worker.Sync/Common/Extensions/ModuleExtensions.cs +++ b/API/ASSISTENTE.Worker.Sync/Common/Extensions/ModuleExtensions.cs @@ -1,6 +1,5 @@ using ASSISTENTE.Module; using ASSISTENTE.Worker.Sync.Services; -using Microsoft.AspNetCore.Builder; namespace ASSISTENTE.Worker.Sync.Common.Extensions; diff --git a/API/ASSISTENTE.Worker.Sync/Consumers/OnCreateEmbeddingsMessageConsumer.cs b/API/ASSISTENTE.Worker.Sync/Consumers/OnCreateEmbeddingsMessageConsumer.cs index f1b41b6..c5575e6 100644 --- a/API/ASSISTENTE.Worker.Sync/Consumers/OnCreateEmbeddingsMessageConsumer.cs +++ b/API/ASSISTENTE.Worker.Sync/Consumers/OnCreateEmbeddingsMessageConsumer.cs @@ -2,7 +2,6 @@ using ASSISTENTE.Contract.Messages.Internal.Knowledge; using ASSISTENTE.Worker.Sync.Common.Bases; using MediatR; -using Microsoft.Extensions.Logging; namespace ASSISTENTE.Worker.Sync.Consumers; diff --git a/API/ASSISTENTE.Worker.Sync/Consumers/OnFindFilesMessageConsumer.cs b/API/ASSISTENTE.Worker.Sync/Consumers/OnFindFilesMessageConsumer.cs index e759ff7..df1a45c 100644 --- a/API/ASSISTENTE.Worker.Sync/Consumers/OnFindFilesMessageConsumer.cs +++ b/API/ASSISTENTE.Worker.Sync/Consumers/OnFindFilesMessageConsumer.cs @@ -2,7 +2,6 @@ using ASSISTENTE.Contract.Messages.Internal.Knowledge; using ASSISTENTE.Worker.Sync.Common.Bases; using MediatR; -using Microsoft.Extensions.Logging; namespace ASSISTENTE.Worker.Sync.Consumers; diff --git a/API/ASSISTENTE.Worker.Sync/Consumers/OnFindResourcesMessageConsumer.cs b/API/ASSISTENTE.Worker.Sync/Consumers/OnFindResourcesMessageConsumer.cs index fff1fa2..b206d30 100644 --- a/API/ASSISTENTE.Worker.Sync/Consumers/OnFindResourcesMessageConsumer.cs +++ b/API/ASSISTENTE.Worker.Sync/Consumers/OnFindResourcesMessageConsumer.cs @@ -2,7 +2,6 @@ using ASSISTENTE.Contract.Messages.Internal.Knowledge; using ASSISTENTE.Worker.Sync.Common.Bases; using MediatR; -using Microsoft.Extensions.Logging; namespace ASSISTENTE.Worker.Sync.Consumers; diff --git a/API/ASSISTENTE.Worker.Sync/Consumers/OnGenerateAnswerMessageConsumer.cs b/API/ASSISTENTE.Worker.Sync/Consumers/OnGenerateAnswerMessageConsumer.cs index a17cec4..bf9bbcc 100644 --- a/API/ASSISTENTE.Worker.Sync/Consumers/OnGenerateAnswerMessageConsumer.cs +++ b/API/ASSISTENTE.Worker.Sync/Consumers/OnGenerateAnswerMessageConsumer.cs @@ -2,7 +2,6 @@ using ASSISTENTE.Contract.Messages.Internal.Knowledge; using ASSISTENTE.Worker.Sync.Common.Bases; using MediatR; -using Microsoft.Extensions.Logging; namespace ASSISTENTE.Worker.Sync.Consumers; diff --git a/API/ASSISTENTE.Worker.Sync/Consumers/OnNotifyQuestionReadinessMessageConsumer.cs b/API/ASSISTENTE.Worker.Sync/Consumers/OnNotifyQuestionReadinessMessageConsumer.cs index c2f1ec8..1d50050 100644 --- a/API/ASSISTENTE.Worker.Sync/Consumers/OnNotifyQuestionReadinessMessageConsumer.cs +++ b/API/ASSISTENTE.Worker.Sync/Consumers/OnNotifyQuestionReadinessMessageConsumer.cs @@ -2,7 +2,6 @@ using ASSISTENTE.Contract.Messages.Internal.Knowledge; using ASSISTENTE.Worker.Sync.Common.Bases; using MediatR; -using Microsoft.Extensions.Logging; namespace ASSISTENTE.Worker.Sync.Consumers; diff --git a/API/ASSISTENTE.Worker.Sync/Consumers/OnResolveContextMessageConsumer.cs b/API/ASSISTENTE.Worker.Sync/Consumers/OnResolveContextMessageConsumer.cs index d43dec8..a73f7f1 100644 --- a/API/ASSISTENTE.Worker.Sync/Consumers/OnResolveContextMessageConsumer.cs +++ b/API/ASSISTENTE.Worker.Sync/Consumers/OnResolveContextMessageConsumer.cs @@ -2,7 +2,6 @@ using ASSISTENTE.Contract.Messages.Internal.Knowledge; using ASSISTENTE.Worker.Sync.Common.Bases; using MediatR; -using Microsoft.Extensions.Logging; namespace ASSISTENTE.Worker.Sync.Consumers; diff --git a/API/ASSISTENTE.Worker.Sync/Program.cs b/API/ASSISTENTE.Worker.Sync/Program.cs index a02e48b..43931b1 100644 --- a/API/ASSISTENTE.Worker.Sync/Program.cs +++ b/API/ASSISTENTE.Worker.Sync/Program.cs @@ -1,8 +1,6 @@ using ASSISTENTE.Common.Observability; using ASSISTENTE.Worker.Sync; using ASSISTENTE.Worker.Sync.Common.Extensions; -using Microsoft.AspNetCore.Builder; -using Microsoft.Extensions.Configuration; using SOFTURE.Common.HealthCheck; using SOFTURE.Settings.Extensions; diff --git a/API/ASSISTENTE.sln b/API/ASSISTENTE.sln index b1177f3..496ef76 100644 --- a/API/ASSISTENTE.sln +++ b/API/ASSISTENTE.sln @@ -83,8 +83,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ASSISTENTE.Persistence.POST EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ASSISTENTE.Common.Observability", "ASSISTENTE.Common.Observability\ASSISTENTE.Common.Observability.csproj", "{EDF1D16A-4C01-4E5B-8513-EB16281039F5}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ASSISTENTE.Common.Correlation", "ASSISTENTE.Common.Correlation\ASSISTENTE.Common.Correlation.csproj", "{3FF95C6E-E2A7-4BA0-BD9A-373235724E84}" -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{9B4F8CB3-29F8-40AC-AA0A-DD4B273EFF6C}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Unit", "Unit", "{C38CC763-14E8-43EA-8D06-D7F9A2DE9FBD}" @@ -230,10 +228,6 @@ Global {EDF1D16A-4C01-4E5B-8513-EB16281039F5}.Debug|Any CPU.Build.0 = Debug|Any CPU {EDF1D16A-4C01-4E5B-8513-EB16281039F5}.Release|Any CPU.ActiveCfg = Release|Any CPU {EDF1D16A-4C01-4E5B-8513-EB16281039F5}.Release|Any CPU.Build.0 = Release|Any CPU - {3FF95C6E-E2A7-4BA0-BD9A-373235724E84}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {3FF95C6E-E2A7-4BA0-BD9A-373235724E84}.Debug|Any CPU.Build.0 = Debug|Any CPU - {3FF95C6E-E2A7-4BA0-BD9A-373235724E84}.Release|Any CPU.ActiveCfg = Release|Any CPU - {3FF95C6E-E2A7-4BA0-BD9A-373235724E84}.Release|Any CPU.Build.0 = Release|Any CPU {E079A371-2133-4F57-9CA1-9AB02CD3590F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {E079A371-2133-4F57-9CA1-9AB02CD3590F}.Debug|Any CPU.Build.0 = Debug|Any CPU {E079A371-2133-4F57-9CA1-9AB02CD3590F}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -295,7 +289,6 @@ Global {0C920E22-63AC-4D7F-AC34-FBC461CF729C} = {D501A620-C909-4367-9656-00D212EC1018} {6DACA8BD-D540-4702-960E-CDA20DEA3A2E} = {D501A620-C909-4367-9656-00D212EC1018} {EDF1D16A-4C01-4E5B-8513-EB16281039F5} = {8BAA21AA-4082-4209-AEC1-7CB59CEEA74A} - {3FF95C6E-E2A7-4BA0-BD9A-373235724E84} = {8BAA21AA-4082-4209-AEC1-7CB59CEEA74A} {C38CC763-14E8-43EA-8D06-D7F9A2DE9FBD} = {9B4F8CB3-29F8-40AC-AA0A-DD4B273EFF6C} {E079A371-2133-4F57-9CA1-9AB02CD3590F} = {C38CC763-14E8-43EA-8D06-D7F9A2DE9FBD} {79B2ABCB-4243-43E3-A5A4-E35E2A99FCB3} = {8BAA21AA-4082-4209-AEC1-7CB59CEEA74A}