@@ -1,13 +0,0 @@
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
|
||||
namespace Api.Clients.Ai;
|
||||
|
||||
public static class HashHelper
|
||||
{
|
||||
public static string Compute(string value)
|
||||
{
|
||||
using var sha = SHA256.Create();
|
||||
return Convert.ToHexString(sha.ComputeHash(Encoding.UTF8.GetBytes(value ?? string.Empty)));
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,7 @@ using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
using Api.Clients.Ai.Contracts;
|
||||
using Api.Data.Repositories.Contracts;
|
||||
using CommonHelpers;
|
||||
using CvMatcher.Models.Settings;
|
||||
using Microsoft.Extensions.Options;
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ WORKDIR /src
|
||||
COPY cv-matcher-api/cv-matcher-api.csproj cv-matcher-api/
|
||||
COPY shared-models/shared-models.csproj shared-models/
|
||||
COPY cv-matcher-api-models/cv-matcher-api-models.csproj cv-matcher-api-models/
|
||||
COPY common-helpers/ common-helpers/
|
||||
COPY startup-helpers/startup-helpers.csproj startup-helpers/
|
||||
|
||||
RUN dotnet restore cv-matcher-api/cv-matcher-api.csproj
|
||||
@@ -12,6 +13,7 @@ RUN dotnet restore cv-matcher-api/cv-matcher-api.csproj
|
||||
COPY cv-matcher-api/ cv-matcher-api/
|
||||
COPY shared-models/ shared-models/
|
||||
COPY cv-matcher-api-models/ cv-matcher-api-models/
|
||||
COPY common-helpers/ common-helpers/
|
||||
COPY startup-helpers/ startup-helpers/
|
||||
|
||||
RUN dotnet publish cv-matcher-api/cv-matcher-api.csproj -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
|
||||
|
||||
@@ -77,6 +77,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\common-helpers\common-helpers.csproj" />
|
||||
<ProjectReference Include="..\cv-matcher-api-models\cv-matcher-api-models.csproj" />
|
||||
<ProjectReference Include="..\shared-models\shared-models.csproj" />
|
||||
<ProjectReference Include="..\startup-helpers\startup-helpers.csproj" />
|
||||
|
||||
Reference in New Issue
Block a user