From 9e9da3eabbde7ceb0603b2d2104b04d92fd12ba0 Mon Sep 17 00:00:00 2001 From: Petro Kolosov Date: Sat, 18 Apr 2026 23:51:35 +0200 Subject: [PATCH 1/9] use sdk step --- azure-pipelines/templates/docker-build-push-jobs.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/azure-pipelines/templates/docker-build-push-jobs.yml b/azure-pipelines/templates/docker-build-push-jobs.yml index d4fda61..0de6f06 100644 --- a/azure-pipelines/templates/docker-build-push-jobs.yml +++ b/azure-pipelines/templates/docker-build-push-jobs.yml @@ -77,6 +77,10 @@ parameters: default: 'https://auth.eventtriangle.razumovsky.me/' type: string + - name: dotnetSdkVersion + type: string + default: '10.x' + jobs: - job: ${{ parameters.JobName }} displayName: ${{ parameters.JobName }} @@ -84,6 +88,12 @@ jobs: - checkout: self fetchDepth: 0 + - task: UseDotNet@2 + displayName: 'Install .NET SDK ${{ parameters.dotnetSdkVersion }}' + inputs: + packageType: 'sdk' + version: '${{ parameters.dotnetSdkVersion }}' + - task: gitversion-setup@4.5.0 displayName: 'GitVersion Setup' inputs: From 6d77b252390abcdcd9485ef9ec7be5911aaedc0f Mon Sep 17 00:00:00 2001 From: Petro Kolosov Date: Sun, 19 Apr 2026 00:10:54 +0200 Subject: [PATCH 2/9] bump dotnet sdk 10.x --- .vscode/settings.json | 4 ++ src/authorization/Dockerfile | 4 +- ...ngleAPI.Authorization.BusinessLogic.csproj | 2 +- ...entTriangleAPI.Authorization.Domain.csproj | 2 +- ...eAPI.Authorization.IntegrationTests.csproj | 2 +- ...iangleAPI.Authorization.Persistence.csproj | 2 +- .../DependencyInjection/SwaggerServices.cs | 4 +- ...angleAPI.Authorization.Presentation.csproj | 2 +- ...TriangleAPI.Authorization.UnitTests.csproj | 2 +- src/consumer/Dockerfile | 4 +- ...entTriangleAPI.Consumer.Application.csproj | 2 +- ...tTriangleAPI.Consumer.BusinessLogic.csproj | 2 +- .../EventTriangleAPI.Consumer.Domain.csproj | 2 +- ...iangleAPI.Consumer.IntegrationTests.csproj | 2 +- ...entTriangleAPI.Consumer.Persistence.csproj | 2 +- .../DependencyInjection/SwaggerServices.cs | 36 +++++++-------- ...ntTriangleAPI.Consumer.Presentation.csproj | 2 +- ...EventTriangleAPI.Consumer.UnitTests.csproj | 2 +- src/sender/Dockerfile | 6 +-- ...EventTriangleAPI.Sender.Application.csproj | 2 +- ...entTriangleAPI.Sender.BusinessLogic.csproj | 2 +- .../EventTriangleAPI.Sender.Domain.csproj | 2 +- ...TriangleAPI.Sender.IntegrationTests.csproj | 2 +- ...EventTriangleAPI.Sender.Persistence.csproj | 2 +- .../DependencyInjection/SwaggerServices.cs | 36 +++++++-------- ...ventTriangleAPI.Sender.Presentation.csproj | 2 +- .../EventTriangleAPI.Sender.UnitTests.csproj | 2 +- ...EventTriangleAPI.Shared.Application.csproj | 44 +++++++++---------- .../EventTriangleAPI.Shared.DTO.csproj | 2 +- 29 files changed, 92 insertions(+), 88 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index ca33898..c78d85b 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -22,9 +22,11 @@ "cSpell.enabled": true, "cSpell.words": [ "Bohner", + "buildtransitive", "Butzer", "Cereceda", "choco", + "contentfiles", "Creds", "DOCKERHUB", "Eulerian", @@ -35,6 +37,7 @@ "howpublished", "Kolosov", "Mathematica", + "Npgsql", "OEIS", "opencover", "ORCID", @@ -44,6 +47,7 @@ "Refactorization", "Riordan", "SOURCEBRANCHNAME", + "Swashbuckle", "tabl", "updatebuildnumber", "vstest", diff --git a/src/authorization/Dockerfile b/src/authorization/Dockerfile index 7e21e5a..3f88b91 100644 --- a/src/authorization/Dockerfile +++ b/src/authorization/Dockerfile @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base +FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base WORKDIR /app EXPOSE 80 EXPOSE 81 @@ -19,7 +19,7 @@ ARG FRONT_API_URL RUN sed -i "s|https://localhost:7000/|$FRONT_API_URL|" ./src/assets/config/config.json RUN ng build --output-path "dist/client" -FROM mcr.microsoft.com/dotnet/sdk:8.0 AS publish +FROM mcr.microsoft.com/dotnet/sdk:10.0 AS publish WORKDIR /src COPY ["authorization/EventTriangleAPI.Authorization.BusinessLogic/EventTriangleAPI.Authorization.BusinessLogic.csproj", "authorization/EventTriangleAPI.Authorization.BusinessLogic/"] COPY ["authorization/EventTriangleAPI.Authorization.Domain/EventTriangleAPI.Authorization.Domain.csproj", "authorization/EventTriangleAPI.Authorization.Domain/"] diff --git a/src/authorization/EventTriangleAPI.Authorization.BusinessLogic/EventTriangleAPI.Authorization.BusinessLogic.csproj b/src/authorization/EventTriangleAPI.Authorization.BusinessLogic/EventTriangleAPI.Authorization.BusinessLogic.csproj index 5861444..5ecdfa6 100644 --- a/src/authorization/EventTriangleAPI.Authorization.BusinessLogic/EventTriangleAPI.Authorization.BusinessLogic.csproj +++ b/src/authorization/EventTriangleAPI.Authorization.BusinessLogic/EventTriangleAPI.Authorization.BusinessLogic.csproj @@ -1,7 +1,7 @@ - net8.0 + net10.0 enable 12 diff --git a/src/authorization/EventTriangleAPI.Authorization.Domain/EventTriangleAPI.Authorization.Domain.csproj b/src/authorization/EventTriangleAPI.Authorization.Domain/EventTriangleAPI.Authorization.Domain.csproj index 8afc195..42e2a2d 100644 --- a/src/authorization/EventTriangleAPI.Authorization.Domain/EventTriangleAPI.Authorization.Domain.csproj +++ b/src/authorization/EventTriangleAPI.Authorization.Domain/EventTriangleAPI.Authorization.Domain.csproj @@ -1,7 +1,7 @@ - net8.0 + net10.0 enable 12 diff --git a/src/authorization/EventTriangleAPI.Authorization.IntegrationTests/EventTriangleAPI.Authorization.IntegrationTests.csproj b/src/authorization/EventTriangleAPI.Authorization.IntegrationTests/EventTriangleAPI.Authorization.IntegrationTests.csproj index f058373..88040b7 100644 --- a/src/authorization/EventTriangleAPI.Authorization.IntegrationTests/EventTriangleAPI.Authorization.IntegrationTests.csproj +++ b/src/authorization/EventTriangleAPI.Authorization.IntegrationTests/EventTriangleAPI.Authorization.IntegrationTests.csproj @@ -1,7 +1,7 @@ - net8.0 + net10.0 enable enable false diff --git a/src/authorization/EventTriangleAPI.Authorization.Persistence/EventTriangleAPI.Authorization.Persistence.csproj b/src/authorization/EventTriangleAPI.Authorization.Persistence/EventTriangleAPI.Authorization.Persistence.csproj index dcaa13c..ac2106f 100644 --- a/src/authorization/EventTriangleAPI.Authorization.Persistence/EventTriangleAPI.Authorization.Persistence.csproj +++ b/src/authorization/EventTriangleAPI.Authorization.Persistence/EventTriangleAPI.Authorization.Persistence.csproj @@ -1,7 +1,7 @@ - net8.0 + net10.0 enable 12 diff --git a/src/authorization/EventTriangleAPI.Authorization.Presentation/DependencyInjection/SwaggerServices.cs b/src/authorization/EventTriangleAPI.Authorization.Presentation/DependencyInjection/SwaggerServices.cs index 11ab95e..c9ae085 100644 --- a/src/authorization/EventTriangleAPI.Authorization.Presentation/DependencyInjection/SwaggerServices.cs +++ b/src/authorization/EventTriangleAPI.Authorization.Presentation/DependencyInjection/SwaggerServices.cs @@ -1,5 +1,5 @@ using System.Reflection; -using Microsoft.OpenApi.Models; +using Microsoft.OpenApi; namespace EventTriangleAPI.Authorization.Presentation.DependencyInjection; @@ -21,4 +21,4 @@ public static IServiceCollection ConfigureSwagger(this IServiceCollection servic return serviceCollection; } -} \ No newline at end of file +} diff --git a/src/authorization/EventTriangleAPI.Authorization.Presentation/EventTriangleAPI.Authorization.Presentation.csproj b/src/authorization/EventTriangleAPI.Authorization.Presentation/EventTriangleAPI.Authorization.Presentation.csproj index 6315872..a71a666 100644 --- a/src/authorization/EventTriangleAPI.Authorization.Presentation/EventTriangleAPI.Authorization.Presentation.csproj +++ b/src/authorization/EventTriangleAPI.Authorization.Presentation/EventTriangleAPI.Authorization.Presentation.csproj @@ -1,7 +1,7 @@ - net8.0 + net10.0 enable 12 diff --git a/src/authorization/EventTriangleAPI.Authorization.UnitTests/EventTriangleAPI.Authorization.UnitTests.csproj b/src/authorization/EventTriangleAPI.Authorization.UnitTests/EventTriangleAPI.Authorization.UnitTests.csproj index 4bdd261..101d4b5 100644 --- a/src/authorization/EventTriangleAPI.Authorization.UnitTests/EventTriangleAPI.Authorization.UnitTests.csproj +++ b/src/authorization/EventTriangleAPI.Authorization.UnitTests/EventTriangleAPI.Authorization.UnitTests.csproj @@ -1,7 +1,7 @@ - net8.0 + net10.0 enable 12 enable diff --git a/src/consumer/Dockerfile b/src/consumer/Dockerfile index 6458205..dd4e7e0 100644 --- a/src/consumer/Dockerfile +++ b/src/consumer/Dockerfile @@ -1,8 +1,8 @@ -FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base +FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base WORKDIR /app EXPOSE 80 -FROM mcr.microsoft.com/dotnet/sdk:8.0 AS publish +FROM mcr.microsoft.com/dotnet/sdk:10.0 AS publish WORKDIR /src COPY ["consumer/EventTriangleAPI.Consumer.Application/EventTriangleAPI.Consumer.Application.csproj", "consumer/EventTriangleAPI.Consumer.Application/"] COPY ["consumer/EventTriangleAPI.Consumer.BusinessLogic/EventTriangleAPI.Consumer.BusinessLogic.csproj", "consumer/EventTriangleAPI.Consumer.BusinessLogic/"] diff --git a/src/consumer/EventTriangleAPI.Consumer.Application/EventTriangleAPI.Consumer.Application.csproj b/src/consumer/EventTriangleAPI.Consumer.Application/EventTriangleAPI.Consumer.Application.csproj index a2a470a..bb06f82 100644 --- a/src/consumer/EventTriangleAPI.Consumer.Application/EventTriangleAPI.Consumer.Application.csproj +++ b/src/consumer/EventTriangleAPI.Consumer.Application/EventTriangleAPI.Consumer.Application.csproj @@ -1,7 +1,7 @@ - net8.0 + net10.0 enable 12 diff --git a/src/consumer/EventTriangleAPI.Consumer.BusinessLogic/EventTriangleAPI.Consumer.BusinessLogic.csproj b/src/consumer/EventTriangleAPI.Consumer.BusinessLogic/EventTriangleAPI.Consumer.BusinessLogic.csproj index 14a5c59..3729638 100644 --- a/src/consumer/EventTriangleAPI.Consumer.BusinessLogic/EventTriangleAPI.Consumer.BusinessLogic.csproj +++ b/src/consumer/EventTriangleAPI.Consumer.BusinessLogic/EventTriangleAPI.Consumer.BusinessLogic.csproj @@ -1,7 +1,7 @@ - net8.0 + net10.0 enable 12 diff --git a/src/consumer/EventTriangleAPI.Consumer.Domain/EventTriangleAPI.Consumer.Domain.csproj b/src/consumer/EventTriangleAPI.Consumer.Domain/EventTriangleAPI.Consumer.Domain.csproj index 8afc195..42e2a2d 100644 --- a/src/consumer/EventTriangleAPI.Consumer.Domain/EventTriangleAPI.Consumer.Domain.csproj +++ b/src/consumer/EventTriangleAPI.Consumer.Domain/EventTriangleAPI.Consumer.Domain.csproj @@ -1,7 +1,7 @@ - net8.0 + net10.0 enable 12 diff --git a/src/consumer/EventTriangleAPI.Consumer.IntegrationTests/EventTriangleAPI.Consumer.IntegrationTests.csproj b/src/consumer/EventTriangleAPI.Consumer.IntegrationTests/EventTriangleAPI.Consumer.IntegrationTests.csproj index 74d5c61..0c97078 100644 --- a/src/consumer/EventTriangleAPI.Consumer.IntegrationTests/EventTriangleAPI.Consumer.IntegrationTests.csproj +++ b/src/consumer/EventTriangleAPI.Consumer.IntegrationTests/EventTriangleAPI.Consumer.IntegrationTests.csproj @@ -1,7 +1,7 @@ - net8.0 + net10.0 enable 12 diff --git a/src/consumer/EventTriangleAPI.Consumer.Persistence/EventTriangleAPI.Consumer.Persistence.csproj b/src/consumer/EventTriangleAPI.Consumer.Persistence/EventTriangleAPI.Consumer.Persistence.csproj index fc84c2e..00f4cce 100644 --- a/src/consumer/EventTriangleAPI.Consumer.Persistence/EventTriangleAPI.Consumer.Persistence.csproj +++ b/src/consumer/EventTriangleAPI.Consumer.Persistence/EventTriangleAPI.Consumer.Persistence.csproj @@ -1,7 +1,7 @@ - net8.0 + net10.0 enable 12 disable diff --git a/src/consumer/EventTriangleAPI.Consumer.Presentation/DependencyInjection/SwaggerServices.cs b/src/consumer/EventTriangleAPI.Consumer.Presentation/DependencyInjection/SwaggerServices.cs index 492e7c5..f5ca2d9 100644 --- a/src/consumer/EventTriangleAPI.Consumer.Presentation/DependencyInjection/SwaggerServices.cs +++ b/src/consumer/EventTriangleAPI.Consumer.Presentation/DependencyInjection/SwaggerServices.cs @@ -1,6 +1,6 @@ using System.Reflection; using Microsoft.Net.Http.Headers; -using Microsoft.OpenApi.Models; +using Microsoft.OpenApi; namespace EventTriangleAPI.Consumer.Presentation.DependencyInjection; @@ -31,24 +31,24 @@ public static IServiceCollection AddSwagger(this IServiceCollection serviceColle } ); - c.AddSecurityRequirement( - new OpenApiSecurityRequirement - { - { - new OpenApiSecurityScheme - { - Reference = new OpenApiReference - { - Type = ReferenceType.SecurityScheme, - Id = "token" - }, - }, - Array.Empty() - } - } - ); + //c.AddSecurityRequirement( + // new OpenApiSecurityRequirement + // { + // { + // new OpenApiSecurityScheme + // { + // Reference = new OpenApiReference + // { + // Type = ReferenceType.SecurityScheme, + // Id = "token" + // }, + // }, + // Array.Empty() + // } + // } + //); }); return serviceCollection; } -} \ No newline at end of file +} diff --git a/src/consumer/EventTriangleAPI.Consumer.Presentation/EventTriangleAPI.Consumer.Presentation.csproj b/src/consumer/EventTriangleAPI.Consumer.Presentation/EventTriangleAPI.Consumer.Presentation.csproj index 46d38c2..dbe5d7c 100644 --- a/src/consumer/EventTriangleAPI.Consumer.Presentation/EventTriangleAPI.Consumer.Presentation.csproj +++ b/src/consumer/EventTriangleAPI.Consumer.Presentation/EventTriangleAPI.Consumer.Presentation.csproj @@ -1,7 +1,7 @@ - net8.0 + net10.0 enable 12 diff --git a/src/consumer/EventTriangleAPI.Consumer.UnitTests/EventTriangleAPI.Consumer.UnitTests.csproj b/src/consumer/EventTriangleAPI.Consumer.UnitTests/EventTriangleAPI.Consumer.UnitTests.csproj index 32045a7..3d9c520 100644 --- a/src/consumer/EventTriangleAPI.Consumer.UnitTests/EventTriangleAPI.Consumer.UnitTests.csproj +++ b/src/consumer/EventTriangleAPI.Consumer.UnitTests/EventTriangleAPI.Consumer.UnitTests.csproj @@ -1,7 +1,7 @@ - net8.0 + net10.0 enable 12 diff --git a/src/sender/Dockerfile b/src/sender/Dockerfile index 7365584..d662950 100644 --- a/src/sender/Dockerfile +++ b/src/sender/Dockerfile @@ -1,9 +1,9 @@ -FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base +FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base WORKDIR /app EXPOSE 80 EXPOSE 81 -FROM mcr.microsoft.com/dotnet/sdk:8.0 AS publish +FROM mcr.microsoft.com/dotnet/sdk:10.0 AS publish WORKDIR /src COPY ["sender/EventTriangleAPI.Sender.Application/EventTriangleAPI.Sender.Application.csproj", "sender/EventTriangleAPI.Sender.Application/"] COPY ["sender/EventTriangleAPI.Sender.BusinessLogic/EventTriangleAPI.Sender.BusinessLogic.csproj", "sender/EventTriangleAPI.Sender.BusinessLogic/"] @@ -22,4 +22,4 @@ RUN dotnet publish "EventTriangleAPI.Sender.Presentation.csproj" -c Release -p:V FROM base AS final WORKDIR /app COPY --from=publish /app/publish . -ENTRYPOINT ["dotnet", "EventTriangleAPI.Sender.Presentation.dll"] \ No newline at end of file +ENTRYPOINT ["dotnet", "EventTriangleAPI.Sender.Presentation.dll"] diff --git a/src/sender/EventTriangleAPI.Sender.Application/EventTriangleAPI.Sender.Application.csproj b/src/sender/EventTriangleAPI.Sender.Application/EventTriangleAPI.Sender.Application.csproj index 16b3d65..7028086 100644 --- a/src/sender/EventTriangleAPI.Sender.Application/EventTriangleAPI.Sender.Application.csproj +++ b/src/sender/EventTriangleAPI.Sender.Application/EventTriangleAPI.Sender.Application.csproj @@ -1,7 +1,7 @@ - net8.0 + net10.0 enable 12 diff --git a/src/sender/EventTriangleAPI.Sender.BusinessLogic/EventTriangleAPI.Sender.BusinessLogic.csproj b/src/sender/EventTriangleAPI.Sender.BusinessLogic/EventTriangleAPI.Sender.BusinessLogic.csproj index d857e78..9458a31 100644 --- a/src/sender/EventTriangleAPI.Sender.BusinessLogic/EventTriangleAPI.Sender.BusinessLogic.csproj +++ b/src/sender/EventTriangleAPI.Sender.BusinessLogic/EventTriangleAPI.Sender.BusinessLogic.csproj @@ -1,7 +1,7 @@ - net8.0 + net10.0 enable 12 diff --git a/src/sender/EventTriangleAPI.Sender.Domain/EventTriangleAPI.Sender.Domain.csproj b/src/sender/EventTriangleAPI.Sender.Domain/EventTriangleAPI.Sender.Domain.csproj index 8afc195..42e2a2d 100644 --- a/src/sender/EventTriangleAPI.Sender.Domain/EventTriangleAPI.Sender.Domain.csproj +++ b/src/sender/EventTriangleAPI.Sender.Domain/EventTriangleAPI.Sender.Domain.csproj @@ -1,7 +1,7 @@ - net8.0 + net10.0 enable 12 diff --git a/src/sender/EventTriangleAPI.Sender.IntegrationTests/EventTriangleAPI.Sender.IntegrationTests.csproj b/src/sender/EventTriangleAPI.Sender.IntegrationTests/EventTriangleAPI.Sender.IntegrationTests.csproj index b624987..ad49bfe 100644 --- a/src/sender/EventTriangleAPI.Sender.IntegrationTests/EventTriangleAPI.Sender.IntegrationTests.csproj +++ b/src/sender/EventTriangleAPI.Sender.IntegrationTests/EventTriangleAPI.Sender.IntegrationTests.csproj @@ -1,7 +1,7 @@ - net8.0 + net10.0 enable 12 diff --git a/src/sender/EventTriangleAPI.Sender.Persistence/EventTriangleAPI.Sender.Persistence.csproj b/src/sender/EventTriangleAPI.Sender.Persistence/EventTriangleAPI.Sender.Persistence.csproj index f2cc075..271c664 100644 --- a/src/sender/EventTriangleAPI.Sender.Persistence/EventTriangleAPI.Sender.Persistence.csproj +++ b/src/sender/EventTriangleAPI.Sender.Persistence/EventTriangleAPI.Sender.Persistence.csproj @@ -1,7 +1,7 @@ - net8.0 + net10.0 enable 12 disable diff --git a/src/sender/EventTriangleAPI.Sender.Presentation/DependencyInjection/SwaggerServices.cs b/src/sender/EventTriangleAPI.Sender.Presentation/DependencyInjection/SwaggerServices.cs index c634603..da55a3c 100644 --- a/src/sender/EventTriangleAPI.Sender.Presentation/DependencyInjection/SwaggerServices.cs +++ b/src/sender/EventTriangleAPI.Sender.Presentation/DependencyInjection/SwaggerServices.cs @@ -1,6 +1,6 @@ using System.Reflection; using Microsoft.Net.Http.Headers; -using Microsoft.OpenApi.Models; +using Microsoft.OpenApi; namespace EventTriangleAPI.Sender.Presentation.DependencyInjection; @@ -31,24 +31,24 @@ public static IServiceCollection AddSwagger(this IServiceCollection serviceColle } ); - c.AddSecurityRequirement( - new OpenApiSecurityRequirement - { - { - new OpenApiSecurityScheme - { - Reference = new OpenApiReference - { - Type = ReferenceType.SecurityScheme, - Id = "token" - }, - }, - Array.Empty() - } - } - ); + //c.AddSecurityRequirement( + // new OpenApiSecurityRequirement + // { + // { + // new OpenApiSecurityScheme + // { + // Reference = new OpenApiReference + // { + // Type = ReferenceType.SecurityScheme, + // Id = "token" + // }, + // }, + // Array.Empty() + // } + // } + //); }); return serviceCollection; } -} \ No newline at end of file +} diff --git a/src/sender/EventTriangleAPI.Sender.Presentation/EventTriangleAPI.Sender.Presentation.csproj b/src/sender/EventTriangleAPI.Sender.Presentation/EventTriangleAPI.Sender.Presentation.csproj index 93fb932..061ebcb 100644 --- a/src/sender/EventTriangleAPI.Sender.Presentation/EventTriangleAPI.Sender.Presentation.csproj +++ b/src/sender/EventTriangleAPI.Sender.Presentation/EventTriangleAPI.Sender.Presentation.csproj @@ -1,7 +1,7 @@ - net8.0 + net10.0 enable 12 diff --git a/src/sender/EventTriangleAPI.Sender.UnitTests/EventTriangleAPI.Sender.UnitTests.csproj b/src/sender/EventTriangleAPI.Sender.UnitTests/EventTriangleAPI.Sender.UnitTests.csproj index 4a21848..de7c481 100644 --- a/src/sender/EventTriangleAPI.Sender.UnitTests/EventTriangleAPI.Sender.UnitTests.csproj +++ b/src/sender/EventTriangleAPI.Sender.UnitTests/EventTriangleAPI.Sender.UnitTests.csproj @@ -1,7 +1,7 @@ - net8.0 + net10.0 enable 12 diff --git a/src/shared/EventTriangleAPI.Shared.Application/EventTriangleAPI.Shared.Application.csproj b/src/shared/EventTriangleAPI.Shared.Application/EventTriangleAPI.Shared.Application.csproj index 0367a78..872da77 100644 --- a/src/shared/EventTriangleAPI.Shared.Application/EventTriangleAPI.Shared.Application.csproj +++ b/src/shared/EventTriangleAPI.Shared.Application/EventTriangleAPI.Shared.Application.csproj @@ -1,45 +1,45 @@ - + - net8.0 + net10.0 enable 12 - - - - - - + + + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - - - - - - - + + + + + + + + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + - + - + diff --git a/src/shared/EventTriangleAPI.Shared.DTO/EventTriangleAPI.Shared.DTO.csproj b/src/shared/EventTriangleAPI.Shared.DTO/EventTriangleAPI.Shared.DTO.csproj index 6b81620..483f802 100644 --- a/src/shared/EventTriangleAPI.Shared.DTO/EventTriangleAPI.Shared.DTO.csproj +++ b/src/shared/EventTriangleAPI.Shared.DTO/EventTriangleAPI.Shared.DTO.csproj @@ -1,7 +1,7 @@ - net8.0 + net10.0 enable 12 From e51ef2eab86705f0cee11e5d4bf8721a8f0887ba Mon Sep 17 00:00:00 2001 From: Petro Kolosov Date: Sun, 19 Apr 2026 00:22:36 +0200 Subject: [PATCH 3/9] bump dotnet packages --- ...ntTriangleAPI.Authorization.IntegrationTests.csproj | 10 +++++----- .../EventTriangleAPI.Authorization.Presentation.csproj | 10 +++++----- .../EventTriangleAPI.Authorization.UnitTests.csproj | 8 ++++---- .../EventTriangleAPI.Consumer.IntegrationTests.csproj | 8 ++++---- .../EventTriangleAPI.Consumer.UnitTests.csproj | 8 ++++---- .../EventTriangleAPI.Sender.IntegrationTests.csproj | 8 ++++---- .../EventTriangleAPI.Sender.UnitTests.csproj | 8 ++++---- 7 files changed, 30 insertions(+), 30 deletions(-) diff --git a/src/authorization/EventTriangleAPI.Authorization.IntegrationTests/EventTriangleAPI.Authorization.IntegrationTests.csproj b/src/authorization/EventTriangleAPI.Authorization.IntegrationTests/EventTriangleAPI.Authorization.IntegrationTests.csproj index 88040b7..98746e5 100644 --- a/src/authorization/EventTriangleAPI.Authorization.IntegrationTests/EventTriangleAPI.Authorization.IntegrationTests.csproj +++ b/src/authorization/EventTriangleAPI.Authorization.IntegrationTests/EventTriangleAPI.Authorization.IntegrationTests.csproj @@ -1,4 +1,4 @@ - + net10.0 @@ -9,13 +9,13 @@ - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + diff --git a/src/authorization/EventTriangleAPI.Authorization.Presentation/EventTriangleAPI.Authorization.Presentation.csproj b/src/authorization/EventTriangleAPI.Authorization.Presentation/EventTriangleAPI.Authorization.Presentation.csproj index a71a666..12494a8 100644 --- a/src/authorization/EventTriangleAPI.Authorization.Presentation/EventTriangleAPI.Authorization.Presentation.csproj +++ b/src/authorization/EventTriangleAPI.Authorization.Presentation/EventTriangleAPI.Authorization.Presentation.csproj @@ -7,11 +7,11 @@ - - - - - + + + + + diff --git a/src/authorization/EventTriangleAPI.Authorization.UnitTests/EventTriangleAPI.Authorization.UnitTests.csproj b/src/authorization/EventTriangleAPI.Authorization.UnitTests/EventTriangleAPI.Authorization.UnitTests.csproj index 101d4b5..92f5fbc 100644 --- a/src/authorization/EventTriangleAPI.Authorization.UnitTests/EventTriangleAPI.Authorization.UnitTests.csproj +++ b/src/authorization/EventTriangleAPI.Authorization.UnitTests/EventTriangleAPI.Authorization.UnitTests.csproj @@ -10,13 +10,13 @@ - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + diff --git a/src/consumer/EventTriangleAPI.Consumer.IntegrationTests/EventTriangleAPI.Consumer.IntegrationTests.csproj b/src/consumer/EventTriangleAPI.Consumer.IntegrationTests/EventTriangleAPI.Consumer.IntegrationTests.csproj index 0c97078..8bac95e 100644 --- a/src/consumer/EventTriangleAPI.Consumer.IntegrationTests/EventTriangleAPI.Consumer.IntegrationTests.csproj +++ b/src/consumer/EventTriangleAPI.Consumer.IntegrationTests/EventTriangleAPI.Consumer.IntegrationTests.csproj @@ -9,13 +9,13 @@ - - - + + + runtime; build; native; contentfiles; analyzers; buildtransitive all - + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/src/consumer/EventTriangleAPI.Consumer.UnitTests/EventTriangleAPI.Consumer.UnitTests.csproj b/src/consumer/EventTriangleAPI.Consumer.UnitTests/EventTriangleAPI.Consumer.UnitTests.csproj index 3d9c520..ec0e02f 100644 --- a/src/consumer/EventTriangleAPI.Consumer.UnitTests/EventTriangleAPI.Consumer.UnitTests.csproj +++ b/src/consumer/EventTriangleAPI.Consumer.UnitTests/EventTriangleAPI.Consumer.UnitTests.csproj @@ -9,13 +9,13 @@ - - - + + + runtime; build; native; contentfiles; analyzers; buildtransitive all - + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/src/sender/EventTriangleAPI.Sender.IntegrationTests/EventTriangleAPI.Sender.IntegrationTests.csproj b/src/sender/EventTriangleAPI.Sender.IntegrationTests/EventTriangleAPI.Sender.IntegrationTests.csproj index ad49bfe..b83020f 100644 --- a/src/sender/EventTriangleAPI.Sender.IntegrationTests/EventTriangleAPI.Sender.IntegrationTests.csproj +++ b/src/sender/EventTriangleAPI.Sender.IntegrationTests/EventTriangleAPI.Sender.IntegrationTests.csproj @@ -9,13 +9,13 @@ - - - + + + runtime; build; native; contentfiles; analyzers; buildtransitive all - + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/src/sender/EventTriangleAPI.Sender.UnitTests/EventTriangleAPI.Sender.UnitTests.csproj b/src/sender/EventTriangleAPI.Sender.UnitTests/EventTriangleAPI.Sender.UnitTests.csproj index de7c481..1ed80f4 100644 --- a/src/sender/EventTriangleAPI.Sender.UnitTests/EventTriangleAPI.Sender.UnitTests.csproj +++ b/src/sender/EventTriangleAPI.Sender.UnitTests/EventTriangleAPI.Sender.UnitTests.csproj @@ -9,13 +9,13 @@ - - - + + + runtime; build; native; contentfiles; analyzers; buildtransitive all - + runtime; build; native; contentfiles; analyzers; buildtransitive all From 9c43a843cab6956f8f8bc733bd03be8b57099bd4 Mon Sep 17 00:00:00 2001 From: Petro Kolosov Date: Sun, 19 Apr 2026 00:48:54 +0200 Subject: [PATCH 4/9] rollback masstransit to 8.2.3 --- .../EventTriangleAPI.Shared.Application.csproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/EventTriangleAPI.Shared.Application/EventTriangleAPI.Shared.Application.csproj b/src/shared/EventTriangleAPI.Shared.Application/EventTriangleAPI.Shared.Application.csproj index 872da77..3340ff8 100644 --- a/src/shared/EventTriangleAPI.Shared.Application/EventTriangleAPI.Shared.Application.csproj +++ b/src/shared/EventTriangleAPI.Shared.Application/EventTriangleAPI.Shared.Application.csproj @@ -1,4 +1,4 @@ - + net10.0 @@ -18,7 +18,7 @@ - + From a2f3abf85156b2c9402fa155921e3ea45213a49a Mon Sep 17 00:00:00 2001 From: Petro Kolosov Date: Sun, 19 Apr 2026 13:09:20 +0200 Subject: [PATCH 5/9] configure ports --- src/sender/EventTriangleAPI.Sender.Presentation/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sender/EventTriangleAPI.Sender.Presentation/Program.cs b/src/sender/EventTriangleAPI.Sender.Presentation/Program.cs index 4883213..ade68de 100644 --- a/src/sender/EventTriangleAPI.Sender.Presentation/Program.cs +++ b/src/sender/EventTriangleAPI.Sender.Presentation/Program.cs @@ -15,7 +15,7 @@ var builder = WebApplication.CreateBuilder(args); -if (builder.Environment.EnvironmentName == "Docker") +if (builder.Environment.EnvironmentName == "Docker" || builder.Environment.EnvironmentName == "Kubernetes") { builder.WebHost.ConfigureKestrel(options => { From f93ec109f8c362299ef447f24e6b92f0814dca6b Mon Sep 17 00:00:00 2001 From: Petro Kolosov Date: Sun, 19 Apr 2026 16:39:01 +0200 Subject: [PATCH 6/9] configure app ports --- src/authorization/Dockerfile | 3 +-- .../Program.cs | 7 ++++++- .../appsettings.Kubernetes.json | 2 +- src/consumer/Dockerfile | 2 +- .../EventTriangleAPI.Consumer.Presentation/Program.cs | 3 ++- src/sender/Dockerfile | 3 +-- .../EventTriangleAPI.Sender.Presentation/Program.cs | 10 +++------- 7 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/authorization/Dockerfile b/src/authorization/Dockerfile index 3f88b91..ac2cf3e 100644 --- a/src/authorization/Dockerfile +++ b/src/authorization/Dockerfile @@ -1,7 +1,6 @@ FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base WORKDIR /app -EXPOSE 80 -EXPOSE 81 +EXPOSE 8080 ENV ASPNETCORE_FORWARDEDHEADERS_ENABLED=true diff --git a/src/authorization/EventTriangleAPI.Authorization.Presentation/Program.cs b/src/authorization/EventTriangleAPI.Authorization.Presentation/Program.cs index d0690a6..aeee241 100644 --- a/src/authorization/EventTriangleAPI.Authorization.Presentation/Program.cs +++ b/src/authorization/EventTriangleAPI.Authorization.Presentation/Program.cs @@ -49,13 +49,18 @@ builder.Services.AddScoped(); builder.Services.AddScoped(); +// ######################################################## GRPC CONFIGS ######################################################## + builder.Services.AddGrpc(); +builder.Logging.AddFilter("Grpc", LogLevel.Debug); + +// ######################################################## GRPC CONFIGS ######################################################## + builder.Services.AddHttpClient(); builder.Services.AddTicketStore(); builder.Services.AddHostedServices(); -builder.Logging.AddFilter("Grpc", LogLevel.Debug); // redis configs start diff --git a/src/authorization/EventTriangleAPI.Authorization.Presentation/appsettings.Kubernetes.json b/src/authorization/EventTriangleAPI.Authorization.Presentation/appsettings.Kubernetes.json index df581d7..c84d6b7 100644 --- a/src/authorization/EventTriangleAPI.Authorization.Presentation/appsettings.Kubernetes.json +++ b/src/authorization/EventTriangleAPI.Authorization.Presentation/appsettings.Kubernetes.json @@ -26,7 +26,7 @@ "AzureAdTokenUrl": "https://login.microsoftonline.com/b40a105f-0643-4922-8e60-10fc1abf9c4b/oauth2/v2.0/token", "ClientSecret": "" }, - "GrpcChannelAddresses": "http://event-triangle-sender-service:81", + "GrpcChannelAddresses": "http://event-triangle-sender-service", "ReverseProxy": { "Routes": { "route1": { diff --git a/src/consumer/Dockerfile b/src/consumer/Dockerfile index dd4e7e0..305c1f0 100644 --- a/src/consumer/Dockerfile +++ b/src/consumer/Dockerfile @@ -1,6 +1,6 @@ FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base WORKDIR /app -EXPOSE 80 +EXPOSE 8080 FROM mcr.microsoft.com/dotnet/sdk:10.0 AS publish WORKDIR /src diff --git a/src/consumer/EventTriangleAPI.Consumer.Presentation/Program.cs b/src/consumer/EventTriangleAPI.Consumer.Presentation/Program.cs index d05fea0..a923063 100644 --- a/src/consumer/EventTriangleAPI.Consumer.Presentation/Program.cs +++ b/src/consumer/EventTriangleAPI.Consumer.Presentation/Program.cs @@ -22,6 +22,7 @@ { o.Conventions.Add(new RouteTokenTransformerConvention(new CustomParameterTransformer())); }); + builder.Services.AddEndpointsApiExplorer(); builder.Services.AddSwagger(); builder.Services.AddSignalR(); @@ -105,4 +106,4 @@ await app.InitializeSeeds(); } -app.Run(); \ No newline at end of file +app.Run(); diff --git a/src/sender/Dockerfile b/src/sender/Dockerfile index d662950..1307598 100644 --- a/src/sender/Dockerfile +++ b/src/sender/Dockerfile @@ -1,7 +1,6 @@ FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base WORKDIR /app -EXPOSE 80 -EXPOSE 81 +EXPOSE 8080 FROM mcr.microsoft.com/dotnet/sdk:10.0 AS publish WORKDIR /src diff --git a/src/sender/EventTriangleAPI.Sender.Presentation/Program.cs b/src/sender/EventTriangleAPI.Sender.Presentation/Program.cs index ade68de..d7b66dd 100644 --- a/src/sender/EventTriangleAPI.Sender.Presentation/Program.cs +++ b/src/sender/EventTriangleAPI.Sender.Presentation/Program.cs @@ -15,14 +15,10 @@ var builder = WebApplication.CreateBuilder(args); -if (builder.Environment.EnvironmentName == "Docker" || builder.Environment.EnvironmentName == "Kubernetes") +builder.WebHost.ConfigureKestrel(options => { - builder.WebHost.ConfigureKestrel(options => - { - options.ListenAnyIP(80, listenOptions => listenOptions.Protocols = HttpProtocols.Http1); - options.ListenAnyIP(81, listenOptions => listenOptions.Protocols = HttpProtocols.Http2); - }); -} + options.ListenAnyIP(8080, listenOptions => listenOptions.Protocols = HttpProtocols.Http1AndHttp2); +}); var configurationSection = builder.Configuration.GetSection(AppSettingsConstants.AzureAd); var databaseConnectionString = builder.Configuration[AppSettingsConstants.DatabaseConnectionString]; From de1c60be019db58d2db9929a473a895bd9da57a1 Mon Sep 17 00:00:00 2001 From: Petro Kolosov Date: Sun, 19 Apr 2026 17:17:46 +0200 Subject: [PATCH 7/9] remove https redirection --- .../EventTriangleAPI.Authorization.Presentation/Program.cs | 2 +- src/consumer/EventTriangleAPI.Consumer.Presentation/Program.cs | 2 +- src/sender/EventTriangleAPI.Sender.Presentation/Program.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/authorization/EventTriangleAPI.Authorization.Presentation/Program.cs b/src/authorization/EventTriangleAPI.Authorization.Presentation/Program.cs index aeee241..dde6d80 100644 --- a/src/authorization/EventTriangleAPI.Authorization.Presentation/Program.cs +++ b/src/authorization/EventTriangleAPI.Authorization.Presentation/Program.cs @@ -95,7 +95,7 @@ app.UseSwagger(); app.UseSwaggerUI(c => { c.SwaggerEndpoint("/swagger/v1/swagger.json", "EventTriangle Authorization API V1"); }); -app.UseHttpsRedirection(); +//app.UseHttpsRedirection(); app.UseHsts(); diff --git a/src/consumer/EventTriangleAPI.Consumer.Presentation/Program.cs b/src/consumer/EventTriangleAPI.Consumer.Presentation/Program.cs index a923063..c0efab8 100644 --- a/src/consumer/EventTriangleAPI.Consumer.Presentation/Program.cs +++ b/src/consumer/EventTriangleAPI.Consumer.Presentation/Program.cs @@ -89,7 +89,7 @@ app.UseSwagger(); app.UseSwaggerUI(); -app.UseHttpsRedirection(); +//app.UseHttpsRedirection(); app.UseRouting(); diff --git a/src/sender/EventTriangleAPI.Sender.Presentation/Program.cs b/src/sender/EventTriangleAPI.Sender.Presentation/Program.cs index d7b66dd..2d8b197 100644 --- a/src/sender/EventTriangleAPI.Sender.Presentation/Program.cs +++ b/src/sender/EventTriangleAPI.Sender.Presentation/Program.cs @@ -67,7 +67,7 @@ app.UseSwagger(); app.UseSwaggerUI(); -app.UseHttpsRedirection(); +//app.UseHttpsRedirection(); app.UseRouting(); From fa631fffa19cd9f2b4adbfbf64d664a557051f4d Mon Sep 17 00:00:00 2001 From: Petro Kolosov Date: Sun, 19 Apr 2026 17:40:27 +0200 Subject: [PATCH 8/9] grpc port --- src/sender/Dockerfile | 1 + src/sender/EventTriangleAPI.Sender.Presentation/Program.cs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sender/Dockerfile b/src/sender/Dockerfile index 1307598..f483175 100644 --- a/src/sender/Dockerfile +++ b/src/sender/Dockerfile @@ -1,6 +1,7 @@ FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base WORKDIR /app EXPOSE 8080 +EXPOSE 8081 FROM mcr.microsoft.com/dotnet/sdk:10.0 AS publish WORKDIR /src diff --git a/src/sender/EventTriangleAPI.Sender.Presentation/Program.cs b/src/sender/EventTriangleAPI.Sender.Presentation/Program.cs index 2d8b197..d276547 100644 --- a/src/sender/EventTriangleAPI.Sender.Presentation/Program.cs +++ b/src/sender/EventTriangleAPI.Sender.Presentation/Program.cs @@ -17,7 +17,8 @@ builder.WebHost.ConfigureKestrel(options => { - options.ListenAnyIP(8080, listenOptions => listenOptions.Protocols = HttpProtocols.Http1AndHttp2); + options.ListenAnyIP(8080, listenOptions => listenOptions.Protocols = HttpProtocols.Http1); // for HTTP/1.1 + options.ListenAnyIP(8081, listenOptions => listenOptions.Protocols = HttpProtocols.Http2); // for GRPC HTTP/2 }); var configurationSection = builder.Configuration.GetSection(AppSettingsConstants.AzureAd); From d0af37828f229c04df548338d85490bfafe17303 Mon Sep 17 00:00:00 2001 From: Petro Kolosov Date: Sun, 19 Apr 2026 19:31:06 +0200 Subject: [PATCH 9/9] update changelog --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 281f2dc..f4d890d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning v2.0.0](https://semver.org/spec/v2.0.0.html). +## [1.x.x] - In progress + +### Changed + +- Add dotnet install step to CI/CD +- Upgrade .NET version to 10 +- Organize ports for apps, containers, services + ## [1.0.0] - 18-Apr-2026 ### Changed