Skip to content

Commit

Permalink
113: Moved HealtCheck common logic to SOFTURE package
Browse files Browse the repository at this point in the history
  • Loading branch information
jarmatys committed Aug 7, 2024
1 parent ad2d756 commit 822b736
Show file tree
Hide file tree
Showing 28 changed files with 25 additions and 184 deletions.
2 changes: 1 addition & 1 deletion API/ASSISTENTE.API/Program.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using ASSISTENTE.API;
using ASSISTENTE.API.Common.Extensions;
using ASSISTENTE.Common.HealthCheck;
using ASSISTENTE.Common.Observability;
using SOFTURE.Common.HealthCheck;
using SOFTURE.Settings.Extensions;

var configuration = new ConfigurationBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@

<ItemGroup>
<ProjectReference Include="..\ASSISTENTE.Application.Abstractions\ASSISTENTE.Application.Abstractions.csproj" />
<ProjectReference Include="..\ASSISTENTE.Common.HealthCheck\ASSISTENTE.Common.HealthCheck.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="SOFTURE.Common.HealthCheck" Version="0.0.2" />
<PackageReference Include="SOFTURE.Results" Version="0.0.7" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion API/ASSISTENTE.Client.Internal/DependencyInjection.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using ASSISTENTE.Application.Abstractions.Clients;
using ASSISTENTE.Client.Internal.HealthChecks;
using ASSISTENTE.Client.Internal.Settings;
using ASSISTENTE.Common.HealthCheck;
using Microsoft.Extensions.DependencyInjection;
using SOFTURE.Common.HealthCheck;

namespace ASSISTENTE.Client.Internal
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System.Net;
using ASSISTENTE.Client.Internal.Settings;
using ASSISTENTE.Common.HealthCheck.Core;
using CSharpFunctionalExtensions;
using Microsoft.Extensions.Options;
using SOFTURE.Common.HealthCheck.Core;

namespace ASSISTENTE.Client.Internal.HealthChecks;

Expand Down

This file was deleted.

36 changes: 0 additions & 36 deletions API/ASSISTENTE.Common.HealthCheck/Core/CheckBase.cs

This file was deleted.

6 changes: 0 additions & 6 deletions API/ASSISTENTE.Common.HealthCheck/Core/Consts.cs

This file was deleted.

7 changes: 0 additions & 7 deletions API/ASSISTENTE.Common.HealthCheck/Core/ICommonHealthCheck.cs

This file was deleted.

33 changes: 0 additions & 33 deletions API/ASSISTENTE.Common.HealthCheck/DependencyInjection.cs

This file was deleted.

48 changes: 0 additions & 48 deletions API/ASSISTENTE.Common.HealthCheck/Presentation/Writer.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,9 @@
<PackageReference Include="Serilog.AspNetCore" Version="8.0.1"/>
<PackageReference Include="Serilog.Sinks.Console" Version="5.0.1"/>
<PackageReference Include="Serilog.Sinks.Seq" Version="5.1.0"/>
<PackageReference Include="SOFTURE.Common.HealthCheck" Version="0.0.2" />
<PackageReference Include="SOFTURE.Results" Version="0.0.7" />
<PackageReference Include="SOFTURE.Settings" Version="0.0.7" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\ASSISTENTE.Common.HealthCheck\ASSISTENTE.Common.HealthCheck.csproj" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion API/ASSISTENTE.Common.Logging/DependencyInjection.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using System.Reflection;
using ASSISTENTE.Common.HealthCheck;
using ASSISTENTE.Common.Logging.HealthChecks;
using ASSISTENTE.Common.Logging.Settings;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Serilog;
using Serilog.Events;
using SOFTURE.Common.HealthCheck;
using SOFTURE.Settings.Extensions;

namespace ASSISTENTE.Common.Logging;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System.Net;
using ASSISTENTE.Common.HealthCheck.Core;
using ASSISTENTE.Common.Logging.Settings;
using CSharpFunctionalExtensions;
using Microsoft.Extensions.Options;
using SOFTURE.Common.HealthCheck.Core;

namespace ASSISTENTE.Common.Logging.HealthChecks;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Runtime.InteropServices.JavaScript;
using SOFTURE.Results;

namespace ASSISTENTE.Infrastructure.CodeParser.Errors;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,11 @@

<ItemGroup>
<PackageReference Include="OpenAI-DotNet" Version="8.1.0" />
<PackageReference Include="SOFTURE.Common.HealthCheck" Version="0.0.2" />
<PackageReference Include="SOFTURE.Results" Version="0.0.7" />
<PackageReference Include="SOFTURE.Settings" Version="0.0.7" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\ASSISTENTE.Common.HealthCheck\ASSISTENTE.Common.HealthCheck.csproj" />
</ItemGroup>

<ItemGroup>
<InternalsVisibleTo Include="ASSISTENTE.Infrastructure"/>
</ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions API/ASSISTENTE.Infrastructure.LLM/DependencyInjection.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using ASSISTENTE.Common.HealthCheck;
using ASSISTENTE.Infrastructure.LLM.Contracts;
using ASSISTENTE.Infrastructure.LLM.Contracts;
using ASSISTENTE.Infrastructure.LLM.HealthChecks;
using ASSISTENTE.Infrastructure.LLM.Providers;
using ASSISTENTE.Infrastructure.LLM.Settings;
using Microsoft.Extensions.DependencyInjection;
using OpenAI;
using SOFTURE.Common.HealthCheck;
using SOFTURE.Settings.Extensions;

namespace ASSISTENTE.Infrastructure.LLM
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using ASSISTENTE.Common.HealthCheck.Core;
using ASSISTENTE.Infrastructure.LLM.Contracts;
using CSharpFunctionalExtensions;
using SOFTURE.Common.HealthCheck.Core;

namespace ASSISTENTE.Infrastructure.LLM.HealthChecks;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@

<ItemGroup>
<PackageReference Include="Qdrant.Client" Version="1.8.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\ASSISTENTE.Common.HealthCheck\ASSISTENTE.Common.HealthCheck.csproj" />
<PackageReference Include="SOFTURE.Common.HealthCheck" Version="0.0.2" />
<PackageReference Include="SOFTURE.Results" Version="0.0.7" />
<PackageReference Include="SOFTURE.Settings" Version="0.0.7" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions API/ASSISTENTE.Infrastructure.Qdrant/DependencyInjection.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using ASSISTENTE.Common.HealthCheck;
using ASSISTENTE.Infrastructure.Qdrant.Contracts;
using ASSISTENTE.Infrastructure.Qdrant.Contracts;
using ASSISTENTE.Infrastructure.Qdrant.HealthChecks;
using ASSISTENTE.Infrastructure.Qdrant.Settings;
using Microsoft.Extensions.DependencyInjection;
using Qdrant.Client;
using SOFTURE.Common.HealthCheck;

namespace ASSISTENTE.Infrastructure.Qdrant
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System.Net;
using ASSISTENTE.Common.HealthCheck.Core;
using ASSISTENTE.Infrastructure.Qdrant.Settings;
using CSharpFunctionalExtensions;
using Microsoft.Extensions.Options;
using SOFTURE.Common.HealthCheck.Core;

namespace ASSISTENTE.Infrastructure.Qdrant.HealthChecks;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
<PackageReference Include="MassTransit" Version="8.2.1"/>
<PackageReference Include="MassTransit.RabbitMQ" Version="8.2.1"/>
<PackageReference Include="Serilog" Version="3.1.1" />
<PackageReference Include="SOFTURE.Common.HealthCheck" Version="0.0.2" />
<PackageReference Include="SOFTURE.Results" Version="0.0.7" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\ASSISTENTE.Common.Correlation\ASSISTENTE.Common.Correlation.csproj" />
<ProjectReference Include="..\ASSISTENTE.Common.HealthCheck\ASSISTENTE.Common.HealthCheck.csproj" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion API/ASSISTENTE.MessageBroker.Rabbit/DependencyInjection.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using System.Reflection;
using ASSISTENTE.Common.HealthCheck;
using ASSISTENTE.MessageBroker.Rabbit.Filters;
using ASSISTENTE.MessageBroker.Rabbit.HealthChecks;
using ASSISTENTE.MessageBroker.Rabbit.Settings;
using MassTransit;
using Microsoft.Extensions.DependencyInjection;
using SOFTURE.Common.HealthCheck;

namespace ASSISTENTE.MessageBroker.Rabbit
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using ASSISTENTE.Common.HealthCheck.Core;
using CSharpFunctionalExtensions;
using MassTransit;
using SOFTURE.Common.HealthCheck.Core;

namespace ASSISTENTE.MessageBroker.Rabbit.HealthChecks;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="6.0.1"/>
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="6.0.0"/>
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="6.0.0"/>
<PackageReference Include="SOFTURE.Common.HealthCheck" Version="0.0.2" />
<PackageReference Include="SOFTURE.Settings" Version="0.0.7" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\ASSISTENTE.Domain\ASSISTENTE.Domain.csproj"/>
<ProjectReference Include="..\ASSISTENTE.Persistence.MSSQL\ASSISTENTE.Persistence.MSSQL.csproj"/>
<ProjectReference Include="..\ASSISTENTE.Persistence.POSTGRESQL\ASSISTENTE.Persistence.POSTGRESQL.csproj"/>
<ProjectReference Include="..\ASSISTENTE.Common.HealthCheck\ASSISTENTE.Common.HealthCheck.csproj" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using ASSISTENTE.Common.HealthCheck;
using ASSISTENTE.Persistence.Configuration.HealthChecks;
using ASSISTENTE.Persistence.Configuration.HealthChecks;
using ASSISTENTE.Persistence.Configuration.Settings;
using ASSISTENTE.Persistence.POSTGRESQL;
using Microsoft.Extensions.DependencyInjection;
using SOFTURE.Common.HealthCheck;
using SOFTURE.Settings.Extensions;

namespace ASSISTENTE.Persistence.Configuration
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using ASSISTENTE.Common.HealthCheck.Core;
using CSharpFunctionalExtensions;
using Microsoft.EntityFrameworkCore;
using SOFTURE.Common.HealthCheck.Core;

namespace ASSISTENTE.Persistence.Configuration.HealthChecks;

Expand Down
2 changes: 1 addition & 1 deletion API/ASSISTENTE.Worker.Sync/Program.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using ASSISTENTE.Common.HealthCheck;
using ASSISTENTE.Common.Observability;
using ASSISTENTE.Worker.Sync;
using ASSISTENTE.Worker.Sync.Common.Extensions;
using SOFTURE.Common.HealthCheck;
using SOFTURE.Settings.Extensions;

var configuration = new ConfigurationBuilder()
Expand Down
Loading

0 comments on commit 822b736

Please sign in to comment.