From 3beb7a5f63a6008eb30e24bfc938a3fd70354d5d Mon Sep 17 00:00:00 2001 From: dyatlov-a Date: Sat, 7 Oct 2023 11:30:09 +0300 Subject: [PATCH] Change project structure --- Inc.TeamAssistant.sln | 6 +++--- build/Build.cs | 16 ++++++++-------- cicd/docker-compose.yml | 12 ++++++------ cicd/dockerfile.app_component | 4 ++-- cicd/dockerfile.migrations_runner | 4 ++-- .../CheckInMessages.cs | 2 +- .../CommandList.cs | 2 +- .../Controllers/AssessmentSessionsController.cs | 2 +- .../Controllers/CheckInController.cs | 2 +- .../Controllers/ResourcesController.cs | 2 +- .../Extensions/ValidationExceptionExtensions.cs | 2 +- .../Hubs/IMessagesHubClient.cs | 2 +- .../Hubs/MessagesHub.cs | 2 +- .../Inc.TeamAssistant.Gateway.csproj} | 0 .../Messages.cs | 2 +- .../Pages/MetaStatic.cshtml | 2 +- .../Pages/Models/HostPageModel.cs | 2 +- .../Pages/Models/MetaStaticViewModel.cs | 2 +- .../Pages/Models/OpenGraphStaticViewModel.cs | 2 +- .../Pages/OpenGraphStatic.cshtml | 2 +- .../Pages/_Host.cshtml | 4 ++-- .../Program.cs | 8 ++++---- .../Properties/launchSettings.json | 2 +- .../Services/AssessmentSessionMetrics.cs | 2 +- .../Services/AssessmentSessionsService.cs | 2 +- .../Services/CheckIn/CheckInService.cs | 2 +- .../Services/CheckIn/DummyLocationBuilder.cs | 2 +- .../Services/ClientInfoService.cs | 2 +- .../Services/CommandFactories/CommandContext.cs | 2 +- .../Services/CommandFactories/CommandProvider.cs | 2 +- .../CommandFactories/ComplexCommandFactory.cs | 2 +- .../CommandFactories/DynamicCommandFactory.cs | 2 +- .../Services/CommandFactories/ICommandFactory.cs | 2 +- .../CommandFactories/StaticCommandFactory.cs | 2 +- .../Services/CookieService.cs | 2 +- .../Services/EventsProvider.cs | 2 +- .../Services/LinkBuilder.cs | 2 +- .../Services/MessageBuilder.cs | 2 +- .../Services/MessageProviders/MessageProvider.cs | 2 +- .../MessageProviders/MessageProviderCached.cs | 2 +- .../Services/MessagesSender.cs | 4 ++-- .../Services/QuickResponseCodeGenerator.cs | 2 +- .../Services/QuickResponseCodeGeneratorCached.cs | 2 +- .../Services/ServiceCollectionExtensions.cs | 6 +++--- .../Services/TelegramBotConnector.cs | 2 +- .../Services/TelegramBotMessageHandler.cs | 8 ++++---- .../Services/TranslateProvider.cs | 2 +- .../TelegramBotOptions.cs | 2 +- .../appsettings.Development.json | 0 .../appsettings.Production.json | 0 .../appsettings.json | 0 .../wwwroot/langs/en.json | 0 .../wwwroot/langs/ru.json | 0 .../2022_09_24_0_CreateUsersScheme.cs | 2 +- .../2022_09_24_1_CreateUsersTable.cs | 2 +- .../2022_12_12_0_CreateMapsScheme.cs | 2 +- .../2022_12_12_1_CreateMapTable.cs | 2 +- .../2022_12_21_0_CreateReviewScheme.cs | 2 +- .../2022_12_21_1_CreateReviewTable.cs | 2 +- .../2023_01_02_0_CreateGenericScheme.cs | 2 +- .../2023_01_02_1_CreateHolidaysTable.cs | 2 +- .../2023_01_11_0_AddTaskDecline.cs | 2 +- .../2023_01_12_0_AddMessageIdToTask.cs | 2 +- .../2023_01_15_0_AddPerson.cs | 2 +- .../2023_01_17_0_ChangeReviewHistory.cs | 2 +- .../2023_01_25_0_ChangePersonsStore.cs | 2 +- .../DatabaseInitialManager.cs | 2 +- .../Inc.TeamAssistant.Migrations.csproj} | 0 .../MigrationRunnerWrapper.cs | 2 +- .../VersionTableSettings.cs | 2 +- .../scripts/create-template.sql | 0 .../Inc.TeamAssistant.MigrationsRunner.csproj} | 2 +- .../Program.cs | 4 ++-- 73 files changed, 92 insertions(+), 92 deletions(-) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/CheckInMessages.cs (84%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/CommandList.cs (93%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/Controllers/AssessmentSessionsController.cs (93%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/Controllers/CheckInController.cs (90%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/Controllers/ResourcesController.cs (89%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/Extensions/ValidationExceptionExtensions.cs (92%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/Hubs/IMessagesHubClient.cs (55%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/Hubs/MessagesHub.cs (82%) rename src/{Inc.TeamAssistant.Appraiser.Backend/Inc.TeamAssistant.Appraiser.Backend.csproj => Inc.TeamAssistant.Gateway/Inc.TeamAssistant.Gateway.csproj} (100%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/Messages.cs (94%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/Pages/MetaStatic.cshtml (81%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/Pages/Models/HostPageModel.cs (97%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/Pages/Models/MetaStaticViewModel.cs (81%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/Pages/Models/OpenGraphStaticViewModel.cs (88%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/Pages/OpenGraphStatic.cshtml (92%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/Pages/_Host.cshtml (98%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/Program.cs (93%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/Properties/launchSettings.json (88%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/Services/AssessmentSessionMetrics.cs (92%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/Services/AssessmentSessionsService.cs (96%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/Services/CheckIn/CheckInService.cs (93%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/Services/CheckIn/DummyLocationBuilder.cs (91%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/Services/ClientInfoService.cs (97%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/Services/CommandFactories/CommandContext.cs (77%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/Services/CommandFactories/CommandProvider.cs (96%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/Services/CommandFactories/ComplexCommandFactory.cs (92%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/Services/CommandFactories/DynamicCommandFactory.cs (97%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/Services/CommandFactories/ICommandFactory.cs (58%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/Services/CommandFactories/StaticCommandFactory.cs (98%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/Services/CookieService.cs (95%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/Services/EventsProvider.cs (82%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/Services/LinkBuilder.cs (97%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/Services/MessageBuilder.cs (95%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/Services/MessageProviders/MessageProvider.cs (93%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/Services/MessageProviders/MessageProviderCached.cs (95%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/Services/MessagesSender.cs (88%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/Services/QuickResponseCodeGenerator.cs (89%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/Services/QuickResponseCodeGeneratorCached.cs (96%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/Services/ServiceCollectionExtensions.cs (93%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/Services/TelegramBotConnector.cs (93%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/Services/TelegramBotMessageHandler.cs (98%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/Services/TranslateProvider.cs (94%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/TelegramBotOptions.cs (88%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/appsettings.Development.json (100%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/appsettings.Production.json (100%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/appsettings.json (100%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/wwwroot/langs/en.json (100%) rename src/{Inc.TeamAssistant.Appraiser.Backend => Inc.TeamAssistant.Gateway}/wwwroot/langs/ru.json (100%) rename src/{Inc.TeamAssistant.Appraiser.Migrations => Inc.TeamAssistant.Migrations}/2022_09_24_0_CreateUsersScheme.cs (93%) rename src/{Inc.TeamAssistant.Appraiser.Migrations => Inc.TeamAssistant.Migrations}/2022_09_24_1_CreateUsersTable.cs (91%) rename src/{Inc.TeamAssistant.Appraiser.Migrations => Inc.TeamAssistant.Migrations}/2022_12_12_0_CreateMapsScheme.cs (93%) rename src/{Inc.TeamAssistant.Appraiser.Migrations => Inc.TeamAssistant.Migrations}/2022_12_12_1_CreateMapTable.cs (97%) rename src/{Inc.TeamAssistant.Appraiser.Migrations => Inc.TeamAssistant.Migrations}/2022_12_21_0_CreateReviewScheme.cs (93%) rename src/{Inc.TeamAssistant.Appraiser.Migrations => Inc.TeamAssistant.Migrations}/2022_12_21_1_CreateReviewTable.cs (98%) rename src/{Inc.TeamAssistant.Appraiser.Migrations => Inc.TeamAssistant.Migrations}/2023_01_02_0_CreateGenericScheme.cs (93%) rename src/{Inc.TeamAssistant.Appraiser.Migrations => Inc.TeamAssistant.Migrations}/2023_01_02_1_CreateHolidaysTable.cs (96%) rename src/{Inc.TeamAssistant.Appraiser.Migrations => Inc.TeamAssistant.Migrations}/2023_01_11_0_AddTaskDecline.cs (95%) rename src/{Inc.TeamAssistant.Appraiser.Migrations => Inc.TeamAssistant.Migrations}/2023_01_12_0_AddMessageIdToTask.cs (95%) rename src/{Inc.TeamAssistant.Appraiser.Migrations => Inc.TeamAssistant.Migrations}/2023_01_15_0_AddPerson.cs (97%) rename src/{Inc.TeamAssistant.Appraiser.Migrations => Inc.TeamAssistant.Migrations}/2023_01_17_0_ChangeReviewHistory.cs (97%) rename src/{Inc.TeamAssistant.Appraiser.Migrations => Inc.TeamAssistant.Migrations}/2023_01_25_0_ChangePersonsStore.cs (98%) rename src/{Inc.TeamAssistant.Appraiser.Migrations => Inc.TeamAssistant.Migrations}/DatabaseInitialManager.cs (96%) rename src/{Inc.TeamAssistant.Appraiser.Migrations/Inc.TeamAssistant.Appraiser.Migrations.csproj => Inc.TeamAssistant.Migrations/Inc.TeamAssistant.Migrations.csproj} (100%) rename src/{Inc.TeamAssistant.Appraiser.Migrations => Inc.TeamAssistant.Migrations}/MigrationRunnerWrapper.cs (96%) rename src/{Inc.TeamAssistant.Appraiser.Migrations => Inc.TeamAssistant.Migrations}/VersionTableSettings.cs (92%) rename src/{Inc.TeamAssistant.Appraiser.Migrations => Inc.TeamAssistant.Migrations}/scripts/create-template.sql (100%) rename src/{Inc.TeamAssistant.Appraiser.MigrationsRunner/Inc.TeamAssistant.Appraiser.MigrationsRunner.csproj => Inc.TeamAssistant.MigrationsRunner/Inc.TeamAssistant.MigrationsRunner.csproj} (69%) rename src/{Inc.TeamAssistant.Appraiser.MigrationsRunner => Inc.TeamAssistant.MigrationsRunner}/Program.cs (94%) diff --git a/Inc.TeamAssistant.sln b/Inc.TeamAssistant.sln index f6eaa16e..54cc23f1 100644 --- a/Inc.TeamAssistant.sln +++ b/Inc.TeamAssistant.sln @@ -1,6 +1,6 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Inc.TeamAssistant.Appraiser.Backend", "src\Inc.TeamAssistant.Appraiser.Backend\Inc.TeamAssistant.Appraiser.Backend.csproj", "{61649230-BDDC-4916-BD91-76125E1297C3}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Inc.TeamAssistant.Gateway", "src\Inc.TeamAssistant.Gateway\Inc.TeamAssistant.Gateway.csproj", "{61649230-BDDC-4916-BD91-76125E1297C3}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Inc.TeamAssistant.Appraiser.Domain", "src\Inc.TeamAssistant.Appraiser.Domain\Inc.TeamAssistant.Appraiser.Domain.csproj", "{9F662515-1BAD-4BCC-B8EC-184124B163C4}" EndProject @@ -28,11 +28,11 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Inc.TeamAssistant.Appraiser EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Inc.TeamAssistant.Appraiser.DataAccess", "src\Inc.TeamAssistant.Appraiser.DataAccess\Inc.TeamAssistant.Appraiser.DataAccess.csproj", "{BCAEF60E-28CD-4315-8A95-2737F4FC18B1}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Inc.TeamAssistant.Appraiser.Migrations", "src\Inc.TeamAssistant.Appraiser.Migrations\Inc.TeamAssistant.Appraiser.Migrations.csproj", "{6E3EBCF7-4BA6-4635-B242-D5812775301C}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Inc.TeamAssistant.Migrations", "src\Inc.TeamAssistant.Migrations\Inc.TeamAssistant.Migrations.csproj", "{6E3EBCF7-4BA6-4635-B242-D5812775301C}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "migrations", "migrations", "{7683BC47-3CD1-4F24-8571-EF8E61340045}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Inc.TeamAssistant.Appraiser.MigrationsRunner", "src\Inc.TeamAssistant.Appraiser.MigrationsRunner\Inc.TeamAssistant.Appraiser.MigrationsRunner.csproj", "{AD512F03-E2F2-49A2-BA51-54845B229B9E}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Inc.TeamAssistant.MigrationsRunner", "src\Inc.TeamAssistant.MigrationsRunner\Inc.TeamAssistant.MigrationsRunner.csproj", "{AD512F03-E2F2-49A2-BA51-54845B229B9E}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "_build", "build\_build.csproj", "{85267DA4-474D-48B5-AD01-A3BCF5695CB7}" EndProject diff --git a/build/Build.cs b/build/Build.cs index 670e7fa8..0ef514da 100644 --- a/build/Build.cs +++ b/build/Build.cs @@ -41,8 +41,8 @@ public sealed class Build : NukeBuild private AbsolutePath TestsDirectory => RootDirectory / "tests"; private AbsolutePath TestReportsDirectory => OutputDirectory / "test-reports"; - private readonly string _migrationRunnerProject = "Inc.TeamAssistant.Appraiser.MigrationsRunner"; - private readonly IEnumerable _appProjects = new[] { "Inc.TeamAssistant.Appraiser.Backend" }; + private readonly string _migrationRunnerProject = "Inc.TeamAssistant.MigrationsRunner"; + private readonly IEnumerable _appProjects = new[] { "Inc.TeamAssistant.Gateway" }; private IEnumerable ProjectsForPublish => _appProjects.Concat(_migrationRunnerProject); @@ -122,14 +122,14 @@ public sealed class Build : NukeBuild .SetProcessWorkingDirectory(RootDirectory) .SetPath(".") .SetFile("cicd/dockerfile.app_component") - .SetTag(GetImageName("inc.teamassistant.appraiser"))); + .SetTag(GetImageName("inc.teamassistant.gateway"))); DockerBuild(x => x .DisableProcessLogOutput() .SetProcessWorkingDirectory(RootDirectory) .SetPath(".") .SetFile("cicd/dockerfile.migrations_runner") - .SetTag(GetImageName("inc.teamassistant.appraiser.migrationsrunner"))); + .SetTag(GetImageName("inc.teamassistant.migrationsrunner"))); }); Target PushImages => _ => _ @@ -142,10 +142,10 @@ public sealed class Build : NukeBuild .DisableProcessLogOutput()); DockerPush(s => s - .SetName(GetImageName("inc.teamassistant.appraiser")) + .SetName(GetImageName("inc.teamassistant.gateway")) .DisableProcessLogOutput()); DockerPush(s => s - .SetName(GetImageName("inc.teamassistant.appraiser.migrationsrunner")) + .SetName(GetImageName("inc.teamassistant.migrationsrunner")) .DisableProcessLogOutput()); }); @@ -154,8 +154,8 @@ public sealed class Build : NukeBuild .Executes(() => { var appDirectory = "/home/inc_teamassistant_appraiser/prod"; - var appraiserImage = GetImageName("inc.teamassistant.appraiser"); - var migrationsRunnerImage = GetImageName("inc.teamassistant.appraiser.migrationsrunner"); + var appraiserImage = GetImageName("inc.teamassistant.gateway"); + var migrationsRunnerImage = GetImageName("inc.teamassistant.migrationsrunner"); using var client = new SshClient(ServerName, ServerUsername, ServerPassword); diff --git a/cicd/docker-compose.yml b/cicd/docker-compose.yml index ea0686db..1a485775 100644 --- a/cicd/docker-compose.yml +++ b/cicd/docker-compose.yml @@ -7,7 +7,7 @@ services: - 80:80 - 443:443 depends_on: - - appraiser_backend + - gateway networks: - team_assistant restart: unless-stopped @@ -15,14 +15,14 @@ services: - /home/inc_teamassistant_appraiser/nginx.conf:/etc/nginx/nginx.conf - /home/inc_teamassistant_appraiser/ssl/:/ssl/ - appraiser_backend: - image: dyatlovhome/inc.teamassistant.appraiser:latest + gateway: + image: dyatlovhome/inc.teamassistant.gateway:latest environment: - ASPNETCORE_ENVIRONMENT=Production - TelegramBotOptions__AccessToken= - CheckInOptions__AccessToken= - ReviewerOptions__AccessToken= - container_name: appraiser_backend + container_name: gateway expose: - 8080 # ports: @@ -32,7 +32,7 @@ services: restart: unless-stopped migrate: - image: dyatlovhome/inc.teamassistant.appraiser.migrationsrunner:latest + image: dyatlovhome/inc.teamassistant.migrationsrunner:latest container_name: migrate command: [ "migrate", "Host=database;Port=5432;Database=appraiser;User Id=postgres;Password=[hidden]" ] depends_on: @@ -42,7 +42,7 @@ services: - team_assistant # create: -# image: dyatlovhome/inc.teamassistant.appraiser.migrationsrunner:latest +# image: dyatlovhome/inc.teamassistant.migrationsrunner:latest # container_name: create # command: [ "create", "Host=database;Port=5432;User Id=postgres;Password=[hidden]", "[hidden]" ] # depends_on: diff --git a/cicd/dockerfile.app_component b/cicd/dockerfile.app_component index 34b6fb93..d9393203 100644 --- a/cicd/dockerfile.app_component +++ b/cicd/dockerfile.app_component @@ -19,7 +19,7 @@ RUN mkdir -p ${APP_DIR} \ && chmod 700 ${APP_DIR} # copy already builded project -COPY --chown=${APP_USER}:${APP_USER} ./output/Inc.TeamAssistant.Appraiser.Backend ${APP_DIR} +COPY --chown=${APP_USER}:${APP_USER} ./output/Inc.TeamAssistant.Gateway ${APP_DIR} WORKDIR ${APP_DIR} # post install commands @@ -29,4 +29,4 @@ RUN rm -f *.sh *.crt \ # Run app as non root user USER ${APP_USER} -ENTRYPOINT ["dotnet", "Inc.TeamAssistant.Appraiser.Backend.dll"] +ENTRYPOINT ["dotnet", "Inc.TeamAssistant.Gateway.dll"] diff --git a/cicd/dockerfile.migrations_runner b/cicd/dockerfile.migrations_runner index 16d1f8f9..c3400c92 100644 --- a/cicd/dockerfile.migrations_runner +++ b/cicd/dockerfile.migrations_runner @@ -14,7 +14,7 @@ RUN mkdir -p ${APP_DIR} \ && chmod 700 ${APP_DIR} # copy already builded project -COPY --chown=${APP_USER}:${APP_USER} ./output/Inc.TeamAssistant.Appraiser.MigrationsRunner ${APP_DIR} +COPY --chown=${APP_USER}:${APP_USER} ./output/Inc.TeamAssistant.MigrationsRunner ${APP_DIR} WORKDIR ${APP_DIR} # post install commands @@ -24,5 +24,5 @@ RUN rm -f *.sh \ # Run app as non root user USER ${APP_USER} -ENTRYPOINT ["dotnet", "Inc.TeamAssistant.Appraiser.MigrationsRunner.dll"] +ENTRYPOINT ["dotnet", "Inc.TeamAssistant.MigrationsRunner.dll"] CMD [] \ No newline at end of file diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/CheckInMessages.cs b/src/Inc.TeamAssistant.Gateway/CheckInMessages.cs similarity index 84% rename from src/Inc.TeamAssistant.Appraiser.Backend/CheckInMessages.cs rename to src/Inc.TeamAssistant.Gateway/CheckInMessages.cs index b2a653c1..dd9c64c2 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/CheckInMessages.cs +++ b/src/Inc.TeamAssistant.Gateway/CheckInMessages.cs @@ -1,6 +1,6 @@ using Inc.TeamAssistant.Primitives; -namespace Inc.TeamAssistant.Appraiser.Backend; +namespace Inc.TeamAssistant.Gateway; internal static class CheckInMessages { diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/CommandList.cs b/src/Inc.TeamAssistant.Gateway/CommandList.cs similarity index 93% rename from src/Inc.TeamAssistant.Appraiser.Backend/CommandList.cs rename to src/Inc.TeamAssistant.Gateway/CommandList.cs index 0c3b7cc1..28b3c135 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/CommandList.cs +++ b/src/Inc.TeamAssistant.Gateway/CommandList.cs @@ -1,4 +1,4 @@ -namespace Inc.TeamAssistant.Appraiser.Backend; +namespace Inc.TeamAssistant.Gateway; internal static class CommandList { diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Controllers/AssessmentSessionsController.cs b/src/Inc.TeamAssistant.Gateway/Controllers/AssessmentSessionsController.cs similarity index 93% rename from src/Inc.TeamAssistant.Appraiser.Backend/Controllers/AssessmentSessionsController.cs rename to src/Inc.TeamAssistant.Gateway/Controllers/AssessmentSessionsController.cs index 4deb026f..1928e222 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/Controllers/AssessmentSessionsController.cs +++ b/src/Inc.TeamAssistant.Gateway/Controllers/AssessmentSessionsController.cs @@ -1,7 +1,7 @@ using Inc.TeamAssistant.Appraiser.Model; using Microsoft.AspNetCore.Mvc; -namespace Inc.TeamAssistant.Appraiser.Backend.Controllers; +namespace Inc.TeamAssistant.Gateway.Controllers; [ApiController] [Route("sessions")] diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Controllers/CheckInController.cs b/src/Inc.TeamAssistant.Gateway/Controllers/CheckInController.cs similarity index 90% rename from src/Inc.TeamAssistant.Appraiser.Backend/Controllers/CheckInController.cs rename to src/Inc.TeamAssistant.Gateway/Controllers/CheckInController.cs index 4ce832b2..369f4c12 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/Controllers/CheckInController.cs +++ b/src/Inc.TeamAssistant.Gateway/Controllers/CheckInController.cs @@ -1,7 +1,7 @@ using Inc.TeamAssistant.CheckIn.Model; using Microsoft.AspNetCore.Mvc; -namespace Inc.TeamAssistant.Appraiser.Backend.Controllers; +namespace Inc.TeamAssistant.Gateway.Controllers; [ApiController] [Route("check-in")] diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Controllers/ResourcesController.cs b/src/Inc.TeamAssistant.Gateway/Controllers/ResourcesController.cs similarity index 89% rename from src/Inc.TeamAssistant.Appraiser.Backend/Controllers/ResourcesController.cs rename to src/Inc.TeamAssistant.Gateway/Controllers/ResourcesController.cs index 28cfc67d..63caf395 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/Controllers/ResourcesController.cs +++ b/src/Inc.TeamAssistant.Gateway/Controllers/ResourcesController.cs @@ -1,7 +1,7 @@ using Inc.TeamAssistant.Appraiser.Model; using Microsoft.AspNetCore.Mvc; -namespace Inc.TeamAssistant.Appraiser.Backend.Controllers; +namespace Inc.TeamAssistant.Gateway.Controllers; [ApiController] [Route("resources")] diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Extensions/ValidationExceptionExtensions.cs b/src/Inc.TeamAssistant.Gateway/Extensions/ValidationExceptionExtensions.cs similarity index 92% rename from src/Inc.TeamAssistant.Appraiser.Backend/Extensions/ValidationExceptionExtensions.cs rename to src/Inc.TeamAssistant.Gateway/Extensions/ValidationExceptionExtensions.cs index 821bc810..9a551dd8 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/Extensions/ValidationExceptionExtensions.cs +++ b/src/Inc.TeamAssistant.Gateway/Extensions/ValidationExceptionExtensions.cs @@ -1,7 +1,7 @@ using System.Text; using FluentValidation; -namespace Inc.TeamAssistant.Appraiser.Backend.Extensions; +namespace Inc.TeamAssistant.Gateway.Extensions; internal static class ValidationExceptionExtensions { diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Hubs/IMessagesHubClient.cs b/src/Inc.TeamAssistant.Gateway/Hubs/IMessagesHubClient.cs similarity index 55% rename from src/Inc.TeamAssistant.Appraiser.Backend/Hubs/IMessagesHubClient.cs rename to src/Inc.TeamAssistant.Gateway/Hubs/IMessagesHubClient.cs index b5c8f8c8..6b5635e5 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/Hubs/IMessagesHubClient.cs +++ b/src/Inc.TeamAssistant.Gateway/Hubs/IMessagesHubClient.cs @@ -1,4 +1,4 @@ -namespace Inc.TeamAssistant.Appraiser.Backend.Hubs; +namespace Inc.TeamAssistant.Gateway.Hubs; public interface IMessagesHubClient { diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Hubs/MessagesHub.cs b/src/Inc.TeamAssistant.Gateway/Hubs/MessagesHub.cs similarity index 82% rename from src/Inc.TeamAssistant.Appraiser.Backend/Hubs/MessagesHub.cs rename to src/Inc.TeamAssistant.Gateway/Hubs/MessagesHub.cs index 797c979b..0bae6c09 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/Hubs/MessagesHub.cs +++ b/src/Inc.TeamAssistant.Gateway/Hubs/MessagesHub.cs @@ -1,6 +1,6 @@ using Microsoft.AspNetCore.SignalR; -namespace Inc.TeamAssistant.Appraiser.Backend.Hubs; +namespace Inc.TeamAssistant.Gateway.Hubs; public sealed class MessagesHub : Hub { diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Inc.TeamAssistant.Appraiser.Backend.csproj b/src/Inc.TeamAssistant.Gateway/Inc.TeamAssistant.Gateway.csproj similarity index 100% rename from src/Inc.TeamAssistant.Appraiser.Backend/Inc.TeamAssistant.Appraiser.Backend.csproj rename to src/Inc.TeamAssistant.Gateway/Inc.TeamAssistant.Gateway.csproj diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Messages.cs b/src/Inc.TeamAssistant.Gateway/Messages.cs similarity index 94% rename from src/Inc.TeamAssistant.Appraiser.Backend/Messages.cs rename to src/Inc.TeamAssistant.Gateway/Messages.cs index b08ff8c4..35612029 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/Messages.cs +++ b/src/Inc.TeamAssistant.Gateway/Messages.cs @@ -1,6 +1,6 @@ using Inc.TeamAssistant.Primitives; -namespace Inc.TeamAssistant.Appraiser.Backend; +namespace Inc.TeamAssistant.Gateway; internal static class Messages { diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Pages/MetaStatic.cshtml b/src/Inc.TeamAssistant.Gateway/Pages/MetaStatic.cshtml similarity index 81% rename from src/Inc.TeamAssistant.Appraiser.Backend/Pages/MetaStatic.cshtml rename to src/Inc.TeamAssistant.Gateway/Pages/MetaStatic.cshtml index ac273a66..859921f1 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/Pages/MetaStatic.cshtml +++ b/src/Inc.TeamAssistant.Gateway/Pages/MetaStatic.cshtml @@ -1,4 +1,4 @@ -@model Inc.TeamAssistant.Appraiser.Backend.Pages.Models.MetaStaticViewModel +@model Inc.TeamAssistant.Gateway.Pages.Models.MetaStaticViewModel @Html.Raw(Model.Title) diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Pages/Models/HostPageModel.cs b/src/Inc.TeamAssistant.Gateway/Pages/Models/HostPageModel.cs similarity index 97% rename from src/Inc.TeamAssistant.Appraiser.Backend/Pages/Models/HostPageModel.cs rename to src/Inc.TeamAssistant.Gateway/Pages/Models/HostPageModel.cs index 2a4be83b..1cb21ed8 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/Pages/Models/HostPageModel.cs +++ b/src/Inc.TeamAssistant.Gateway/Pages/Models/HostPageModel.cs @@ -4,7 +4,7 @@ using Inc.TeamAssistant.Primitives; using Microsoft.AspNetCore.Mvc.RazorPages; -namespace Inc.TeamAssistant.Appraiser.Backend.Pages.Models; +namespace Inc.TeamAssistant.Gateway.Pages.Models; internal sealed class HostPageModel : PageModel { diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Pages/Models/MetaStaticViewModel.cs b/src/Inc.TeamAssistant.Gateway/Pages/Models/MetaStaticViewModel.cs similarity index 81% rename from src/Inc.TeamAssistant.Appraiser.Backend/Pages/Models/MetaStaticViewModel.cs rename to src/Inc.TeamAssistant.Gateway/Pages/Models/MetaStaticViewModel.cs index 42ef4bec..039a385b 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/Pages/Models/MetaStaticViewModel.cs +++ b/src/Inc.TeamAssistant.Gateway/Pages/Models/MetaStaticViewModel.cs @@ -1,4 +1,4 @@ -namespace Inc.TeamAssistant.Appraiser.Backend.Pages.Models; +namespace Inc.TeamAssistant.Gateway.Pages.Models; public sealed record MetaStaticViewModel(string Title, string Description, string Keywords, string Author) { diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Pages/Models/OpenGraphStaticViewModel.cs b/src/Inc.TeamAssistant.Gateway/Pages/Models/OpenGraphStaticViewModel.cs similarity index 88% rename from src/Inc.TeamAssistant.Appraiser.Backend/Pages/Models/OpenGraphStaticViewModel.cs rename to src/Inc.TeamAssistant.Gateway/Pages/Models/OpenGraphStaticViewModel.cs index d655b477..abd38e53 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/Pages/Models/OpenGraphStaticViewModel.cs +++ b/src/Inc.TeamAssistant.Gateway/Pages/Models/OpenGraphStaticViewModel.cs @@ -1,7 +1,7 @@ using Inc.TeamAssistant.Languages; using Inc.TeamAssistant.Primitives; -namespace Inc.TeamAssistant.Appraiser.Backend.Pages.Models; +namespace Inc.TeamAssistant.Gateway.Pages.Models; public sealed record OpenGraphStaticViewModel(LanguageId LanguageId, string Title, string Description, string ImageName) { diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Pages/OpenGraphStatic.cshtml b/src/Inc.TeamAssistant.Gateway/Pages/OpenGraphStatic.cshtml similarity index 92% rename from src/Inc.TeamAssistant.Appraiser.Backend/Pages/OpenGraphStatic.cshtml rename to src/Inc.TeamAssistant.Gateway/Pages/OpenGraphStatic.cshtml index c237cb21..a720e949 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/Pages/OpenGraphStatic.cshtml +++ b/src/Inc.TeamAssistant.Gateway/Pages/OpenGraphStatic.cshtml @@ -1,4 +1,4 @@ -@model Inc.TeamAssistant.Appraiser.Backend.Pages.Models.OpenGraphStaticViewModel +@model Inc.TeamAssistant.Gateway.Pages.Models.OpenGraphStaticViewModel diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Pages/_Host.cshtml b/src/Inc.TeamAssistant.Gateway/Pages/_Host.cshtml similarity index 98% rename from src/Inc.TeamAssistant.Appraiser.Backend/Pages/_Host.cshtml rename to src/Inc.TeamAssistant.Gateway/Pages/_Host.cshtml index d4197173..e115a355 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/Pages/_Host.cshtml +++ b/src/Inc.TeamAssistant.Gateway/Pages/_Host.cshtml @@ -1,9 +1,9 @@ @page -@namespace Inc.TeamAssistant.Appraiser.Backend.Pages +@namespace Inc.TeamAssistant.Gateway.Pages @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers -@model Inc.TeamAssistant.Appraiser.Backend.Pages.Models.HostPageModel +@model Inc.TeamAssistant.Gateway.Pages.Models.HostPageModel diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Program.cs b/src/Inc.TeamAssistant.Gateway/Program.cs similarity index 93% rename from src/Inc.TeamAssistant.Appraiser.Backend/Program.cs rename to src/Inc.TeamAssistant.Gateway/Program.cs index a1f934a9..1cf3b516 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/Program.cs +++ b/src/Inc.TeamAssistant.Gateway/Program.cs @@ -1,9 +1,5 @@ using Inc.TeamAssistant.Appraiser.Application; using Inc.TeamAssistant.Appraiser.Application.Contracts; -using Inc.TeamAssistant.Appraiser.Backend; -using Inc.TeamAssistant.Appraiser.Backend.Hubs; -using Inc.TeamAssistant.Appraiser.Backend.Services; -using Inc.TeamAssistant.Appraiser.Backend.Services.CheckIn; using Inc.TeamAssistant.Appraiser.DataAccess; using Inc.TeamAssistant.WebUI.Services; using Inc.TeamAssistant.Appraiser.Notifications; @@ -15,6 +11,10 @@ using Inc.TeamAssistant.Languages; using Inc.TeamAssistant.Users; using Inc.TeamAssistant.DialogContinuations; +using Inc.TeamAssistant.Gateway; +using Inc.TeamAssistant.Gateway.Hubs; +using Inc.TeamAssistant.Gateway.Services; +using Inc.TeamAssistant.Gateway.Services.CheckIn; using Inc.TeamAssistant.Reviewer.Application; using Inc.TeamAssistant.Reviewer.Application.Contracts; using Inc.TeamAssistant.Reviewer.DataAccess; diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Properties/launchSettings.json b/src/Inc.TeamAssistant.Gateway/Properties/launchSettings.json similarity index 88% rename from src/Inc.TeamAssistant.Appraiser.Backend/Properties/launchSettings.json rename to src/Inc.TeamAssistant.Gateway/Properties/launchSettings.json index 7079577e..017ce7ab 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/Properties/launchSettings.json +++ b/src/Inc.TeamAssistant.Gateway/Properties/launchSettings.json @@ -1,7 +1,7 @@ { "$schema": "https://json.schemastore.org/launchsettings.json", "profiles": { - "Inc.TeamAssistant.Appraiser.Backend": { + "Inc.TeamAssistant.Gateway": { "commandName": "Project", "dotnetRunMessages": true, "launchBrowser": true, diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Services/AssessmentSessionMetrics.cs b/src/Inc.TeamAssistant.Gateway/Services/AssessmentSessionMetrics.cs similarity index 92% rename from src/Inc.TeamAssistant.Appraiser.Backend/Services/AssessmentSessionMetrics.cs rename to src/Inc.TeamAssistant.Gateway/Services/AssessmentSessionMetrics.cs index 307cd82b..2d0524f7 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/Services/AssessmentSessionMetrics.cs +++ b/src/Inc.TeamAssistant.Gateway/Services/AssessmentSessionMetrics.cs @@ -1,7 +1,7 @@ using Inc.TeamAssistant.Appraiser.Application.Contracts; using Prometheus; -namespace Inc.TeamAssistant.Appraiser.Backend.Services; +namespace Inc.TeamAssistant.Gateway.Services; internal sealed class AssessmentSessionMetrics : IAssessmentSessionMetrics { diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Services/AssessmentSessionsService.cs b/src/Inc.TeamAssistant.Gateway/Services/AssessmentSessionsService.cs similarity index 96% rename from src/Inc.TeamAssistant.Appraiser.Backend/Services/AssessmentSessionsService.cs rename to src/Inc.TeamAssistant.Gateway/Services/AssessmentSessionsService.cs index fc016813..e1d207e7 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/Services/AssessmentSessionsService.cs +++ b/src/Inc.TeamAssistant.Gateway/Services/AssessmentSessionsService.cs @@ -5,7 +5,7 @@ using Inc.TeamAssistant.Appraiser.Primitives; using MediatR; -namespace Inc.TeamAssistant.Appraiser.Backend.Services; +namespace Inc.TeamAssistant.Gateway.Services; internal sealed class AssessmentSessionsService : IAssessmentSessionsService { diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Services/CheckIn/CheckInService.cs b/src/Inc.TeamAssistant.Gateway/Services/CheckIn/CheckInService.cs similarity index 93% rename from src/Inc.TeamAssistant.Appraiser.Backend/Services/CheckIn/CheckInService.cs rename to src/Inc.TeamAssistant.Gateway/Services/CheckIn/CheckInService.cs index d18a118a..ed83ab29 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/Services/CheckIn/CheckInService.cs +++ b/src/Inc.TeamAssistant.Gateway/Services/CheckIn/CheckInService.cs @@ -3,7 +3,7 @@ using Inc.TeamAssistant.CheckIn.Model.Queries.GetLocations; using MediatR; -namespace Inc.TeamAssistant.Appraiser.Backend.Services.CheckIn; +namespace Inc.TeamAssistant.Gateway.Services.CheckIn; internal sealed class CheckInService : ICheckInService { diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Services/CheckIn/DummyLocationBuilder.cs b/src/Inc.TeamAssistant.Gateway/Services/CheckIn/DummyLocationBuilder.cs similarity index 91% rename from src/Inc.TeamAssistant.Appraiser.Backend/Services/CheckIn/DummyLocationBuilder.cs rename to src/Inc.TeamAssistant.Gateway/Services/CheckIn/DummyLocationBuilder.cs index 59a6fd36..1fa9c6ae 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/Services/CheckIn/DummyLocationBuilder.cs +++ b/src/Inc.TeamAssistant.Gateway/Services/CheckIn/DummyLocationBuilder.cs @@ -1,7 +1,7 @@ using Inc.TeamAssistant.CheckIn.Model; using Inc.TeamAssistant.CheckIn.Model.Queries.GetLocations; -namespace Inc.TeamAssistant.Appraiser.Backend.Services.CheckIn; +namespace Inc.TeamAssistant.Gateway.Services.CheckIn; internal sealed class DummyLocationBuilder : ILocationBuilder { diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Services/ClientInfoService.cs b/src/Inc.TeamAssistant.Gateway/Services/ClientInfoService.cs similarity index 97% rename from src/Inc.TeamAssistant.Appraiser.Backend/Services/ClientInfoService.cs rename to src/Inc.TeamAssistant.Gateway/Services/ClientInfoService.cs index e84b92ca..094a9456 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/Services/ClientInfoService.cs +++ b/src/Inc.TeamAssistant.Gateway/Services/ClientInfoService.cs @@ -2,7 +2,7 @@ using Inc.TeamAssistant.Languages; using Inc.TeamAssistant.Primitives; -namespace Inc.TeamAssistant.Appraiser.Backend.Services; +namespace Inc.TeamAssistant.Gateway.Services; internal sealed class ClientInfoService : IClientInfoService { diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Services/CommandFactories/CommandContext.cs b/src/Inc.TeamAssistant.Gateway/Services/CommandFactories/CommandContext.cs similarity index 77% rename from src/Inc.TeamAssistant.Appraiser.Backend/Services/CommandFactories/CommandContext.cs rename to src/Inc.TeamAssistant.Gateway/Services/CommandFactories/CommandContext.cs index 6b977106..a949a4bf 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/Services/CommandFactories/CommandContext.cs +++ b/src/Inc.TeamAssistant.Gateway/Services/CommandFactories/CommandContext.cs @@ -1,7 +1,7 @@ using Inc.TeamAssistant.Appraiser.Primitives; using Inc.TeamAssistant.Primitives; -namespace Inc.TeamAssistant.Appraiser.Backend.Services.CommandFactories; +namespace Inc.TeamAssistant.Gateway.Services.CommandFactories; public sealed record CommandContext( string Cmd, diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Services/CommandFactories/CommandProvider.cs b/src/Inc.TeamAssistant.Gateway/Services/CommandFactories/CommandProvider.cs similarity index 96% rename from src/Inc.TeamAssistant.Appraiser.Backend/Services/CommandFactories/CommandProvider.cs rename to src/Inc.TeamAssistant.Gateway/Services/CommandFactories/CommandProvider.cs index dd2ee38b..8c5b6f38 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/Services/CommandFactories/CommandProvider.cs +++ b/src/Inc.TeamAssistant.Gateway/Services/CommandFactories/CommandProvider.cs @@ -10,7 +10,7 @@ using Inc.TeamAssistant.Appraiser.Model.Commands.ReVoteEstimate; using Inc.TeamAssistant.Appraiser.Model.Queries.ShowParticipants; -namespace Inc.TeamAssistant.Appraiser.Backend.Services.CommandFactories; +namespace Inc.TeamAssistant.Gateway.Services.CommandFactories; internal sealed class CommandProvider : ICommandProvider { diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Services/CommandFactories/ComplexCommandFactory.cs b/src/Inc.TeamAssistant.Gateway/Services/CommandFactories/ComplexCommandFactory.cs similarity index 92% rename from src/Inc.TeamAssistant.Appraiser.Backend/Services/CommandFactories/ComplexCommandFactory.cs rename to src/Inc.TeamAssistant.Gateway/Services/CommandFactories/ComplexCommandFactory.cs index edae8ceb..1c348631 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/Services/CommandFactories/ComplexCommandFactory.cs +++ b/src/Inc.TeamAssistant.Gateway/Services/CommandFactories/ComplexCommandFactory.cs @@ -1,6 +1,6 @@ using MediatR; -namespace Inc.TeamAssistant.Appraiser.Backend.Services.CommandFactories; +namespace Inc.TeamAssistant.Gateway.Services.CommandFactories; internal sealed class ComplexCommandFactory : ICommandFactory { diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Services/CommandFactories/DynamicCommandFactory.cs b/src/Inc.TeamAssistant.Gateway/Services/CommandFactories/DynamicCommandFactory.cs similarity index 97% rename from src/Inc.TeamAssistant.Appraiser.Backend/Services/CommandFactories/DynamicCommandFactory.cs rename to src/Inc.TeamAssistant.Gateway/Services/CommandFactories/DynamicCommandFactory.cs index d9f23d6e..29a87c6f 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/Services/CommandFactories/DynamicCommandFactory.cs +++ b/src/Inc.TeamAssistant.Gateway/Services/CommandFactories/DynamicCommandFactory.cs @@ -8,7 +8,7 @@ using Inc.TeamAssistant.DialogContinuations; using MediatR; -namespace Inc.TeamAssistant.Appraiser.Backend.Services.CommandFactories; +namespace Inc.TeamAssistant.Gateway.Services.CommandFactories; internal sealed class DynamicCommandFactory : ICommandFactory { diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Services/CommandFactories/ICommandFactory.cs b/src/Inc.TeamAssistant.Gateway/Services/CommandFactories/ICommandFactory.cs similarity index 58% rename from src/Inc.TeamAssistant.Appraiser.Backend/Services/CommandFactories/ICommandFactory.cs rename to src/Inc.TeamAssistant.Gateway/Services/CommandFactories/ICommandFactory.cs index 83974ed8..0f35290d 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/Services/CommandFactories/ICommandFactory.cs +++ b/src/Inc.TeamAssistant.Gateway/Services/CommandFactories/ICommandFactory.cs @@ -1,6 +1,6 @@ using MediatR; -namespace Inc.TeamAssistant.Appraiser.Backend.Services.CommandFactories; +namespace Inc.TeamAssistant.Gateway.Services.CommandFactories; public interface ICommandFactory { diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Services/CommandFactories/StaticCommandFactory.cs b/src/Inc.TeamAssistant.Gateway/Services/CommandFactories/StaticCommandFactory.cs similarity index 98% rename from src/Inc.TeamAssistant.Appraiser.Backend/Services/CommandFactories/StaticCommandFactory.cs rename to src/Inc.TeamAssistant.Gateway/Services/CommandFactories/StaticCommandFactory.cs index fe5dbe4a..7242eef2 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/Services/CommandFactories/StaticCommandFactory.cs +++ b/src/Inc.TeamAssistant.Gateway/Services/CommandFactories/StaticCommandFactory.cs @@ -16,7 +16,7 @@ using Inc.TeamAssistant.Languages; using MediatR; -namespace Inc.TeamAssistant.Appraiser.Backend.Services.CommandFactories; +namespace Inc.TeamAssistant.Gateway.Services.CommandFactories; internal sealed class StaticCommandFactory : ICommandFactory { diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Services/CookieService.cs b/src/Inc.TeamAssistant.Gateway/Services/CookieService.cs similarity index 95% rename from src/Inc.TeamAssistant.Appraiser.Backend/Services/CookieService.cs rename to src/Inc.TeamAssistant.Gateway/Services/CookieService.cs index ecb51fa3..0211daf4 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/Services/CookieService.cs +++ b/src/Inc.TeamAssistant.Gateway/Services/CookieService.cs @@ -1,6 +1,6 @@ using Inc.TeamAssistant.Appraiser.Model; -namespace Inc.TeamAssistant.Appraiser.Backend.Services; +namespace Inc.TeamAssistant.Gateway.Services; internal sealed class CookieService : ICookieService { diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Services/EventsProvider.cs b/src/Inc.TeamAssistant.Gateway/Services/EventsProvider.cs similarity index 82% rename from src/Inc.TeamAssistant.Appraiser.Backend/Services/EventsProvider.cs rename to src/Inc.TeamAssistant.Gateway/Services/EventsProvider.cs index b7b0a387..452e85b5 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/Services/EventsProvider.cs +++ b/src/Inc.TeamAssistant.Gateway/Services/EventsProvider.cs @@ -1,6 +1,6 @@ using Inc.TeamAssistant.Appraiser.Model; -namespace Inc.TeamAssistant.Appraiser.Backend.Services; +namespace Inc.TeamAssistant.Gateway.Services; internal sealed class EventsProvider : IEventsProvider { diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Services/LinkBuilder.cs b/src/Inc.TeamAssistant.Gateway/Services/LinkBuilder.cs similarity index 97% rename from src/Inc.TeamAssistant.Appraiser.Backend/Services/LinkBuilder.cs rename to src/Inc.TeamAssistant.Gateway/Services/LinkBuilder.cs index a322196f..46465a8b 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/Services/LinkBuilder.cs +++ b/src/Inc.TeamAssistant.Gateway/Services/LinkBuilder.cs @@ -2,7 +2,7 @@ using Inc.TeamAssistant.Appraiser.Primitives; using Inc.TeamAssistant.Primitives; -namespace Inc.TeamAssistant.Appraiser.Backend.Services; +namespace Inc.TeamAssistant.Gateway.Services; internal sealed class LinkBuilder : ILinkBuilder { diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Services/MessageBuilder.cs b/src/Inc.TeamAssistant.Gateway/Services/MessageBuilder.cs similarity index 95% rename from src/Inc.TeamAssistant.Appraiser.Backend/Services/MessageBuilder.cs rename to src/Inc.TeamAssistant.Gateway/Services/MessageBuilder.cs index 540c6c6c..55135b46 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/Services/MessageBuilder.cs +++ b/src/Inc.TeamAssistant.Gateway/Services/MessageBuilder.cs @@ -3,7 +3,7 @@ using Inc.TeamAssistant.Appraiser.Model.Common; using Inc.TeamAssistant.Primitives; -namespace Inc.TeamAssistant.Appraiser.Backend.Services; +namespace Inc.TeamAssistant.Gateway.Services; internal sealed class MessageBuilder : IMessageBuilder { diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Services/MessageProviders/MessageProvider.cs b/src/Inc.TeamAssistant.Gateway/Services/MessageProviders/MessageProvider.cs similarity index 93% rename from src/Inc.TeamAssistant.Appraiser.Backend/Services/MessageProviders/MessageProvider.cs rename to src/Inc.TeamAssistant.Gateway/Services/MessageProviders/MessageProvider.cs index d10cc50d..6258fd04 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/Services/MessageProviders/MessageProvider.cs +++ b/src/Inc.TeamAssistant.Gateway/Services/MessageProviders/MessageProvider.cs @@ -3,7 +3,7 @@ using Inc.TeamAssistant.Appraiser.Model.Common; using Inc.TeamAssistant.Languages; -namespace Inc.TeamAssistant.Appraiser.Backend.Services.MessageProviders; +namespace Inc.TeamAssistant.Gateway.Services.MessageProviders; internal sealed class MessageProvider : IMessageProvider { diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Services/MessageProviders/MessageProviderCached.cs b/src/Inc.TeamAssistant.Gateway/Services/MessageProviders/MessageProviderCached.cs similarity index 95% rename from src/Inc.TeamAssistant.Appraiser.Backend/Services/MessageProviders/MessageProviderCached.cs rename to src/Inc.TeamAssistant.Gateway/Services/MessageProviders/MessageProviderCached.cs index 2779ecd9..2730c85e 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/Services/MessageProviders/MessageProviderCached.cs +++ b/src/Inc.TeamAssistant.Gateway/Services/MessageProviders/MessageProviderCached.cs @@ -2,7 +2,7 @@ using Inc.TeamAssistant.Appraiser.Model.Common; using Microsoft.Extensions.Caching.Memory; -namespace Inc.TeamAssistant.Appraiser.Backend.Services.MessageProviders; +namespace Inc.TeamAssistant.Gateway.Services.MessageProviders; internal sealed class MessageProviderCached : IMessageProvider { diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Services/MessagesSender.cs b/src/Inc.TeamAssistant.Gateway/Services/MessagesSender.cs similarity index 88% rename from src/Inc.TeamAssistant.Appraiser.Backend/Services/MessagesSender.cs rename to src/Inc.TeamAssistant.Gateway/Services/MessagesSender.cs index 2cd57dd2..2474a6e1 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/Services/MessagesSender.cs +++ b/src/Inc.TeamAssistant.Gateway/Services/MessagesSender.cs @@ -1,9 +1,9 @@ -using Inc.TeamAssistant.Appraiser.Backend.Hubs; using Inc.TeamAssistant.Appraiser.Notifications.Contracts; using Inc.TeamAssistant.Appraiser.Primitives; +using Inc.TeamAssistant.Gateway.Hubs; using Microsoft.AspNetCore.SignalR; -namespace Inc.TeamAssistant.Appraiser.Backend.Services; +namespace Inc.TeamAssistant.Gateway.Services; internal sealed class MessagesSender : IMessagesSender { diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Services/QuickResponseCodeGenerator.cs b/src/Inc.TeamAssistant.Gateway/Services/QuickResponseCodeGenerator.cs similarity index 89% rename from src/Inc.TeamAssistant.Appraiser.Backend/Services/QuickResponseCodeGenerator.cs rename to src/Inc.TeamAssistant.Gateway/Services/QuickResponseCodeGenerator.cs index fcdd033c..db7b225e 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/Services/QuickResponseCodeGenerator.cs +++ b/src/Inc.TeamAssistant.Gateway/Services/QuickResponseCodeGenerator.cs @@ -1,7 +1,7 @@ using Inc.TeamAssistant.Appraiser.Application.Contracts; using Net.Codecrete.QrCodeGenerator; -namespace Inc.TeamAssistant.Appraiser.Backend.Services; +namespace Inc.TeamAssistant.Gateway.Services; internal sealed class QuickResponseCodeGenerator : IQuickResponseCodeGenerator { diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Services/QuickResponseCodeGeneratorCached.cs b/src/Inc.TeamAssistant.Gateway/Services/QuickResponseCodeGeneratorCached.cs similarity index 96% rename from src/Inc.TeamAssistant.Appraiser.Backend/Services/QuickResponseCodeGeneratorCached.cs rename to src/Inc.TeamAssistant.Gateway/Services/QuickResponseCodeGeneratorCached.cs index 62c2409b..bc4ad09b 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/Services/QuickResponseCodeGeneratorCached.cs +++ b/src/Inc.TeamAssistant.Gateway/Services/QuickResponseCodeGeneratorCached.cs @@ -1,7 +1,7 @@ using Inc.TeamAssistant.Appraiser.Application.Contracts; using Microsoft.Extensions.Caching.Memory; -namespace Inc.TeamAssistant.Appraiser.Backend.Services; +namespace Inc.TeamAssistant.Gateway.Services; internal sealed class QuickResponseCodeGeneratorCached : IQuickResponseCodeGenerator { diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Services/ServiceCollectionExtensions.cs b/src/Inc.TeamAssistant.Gateway/Services/ServiceCollectionExtensions.cs similarity index 93% rename from src/Inc.TeamAssistant.Appraiser.Backend/Services/ServiceCollectionExtensions.cs rename to src/Inc.TeamAssistant.Gateway/Services/ServiceCollectionExtensions.cs index 88e3ea04..1abf8b59 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/Services/ServiceCollectionExtensions.cs +++ b/src/Inc.TeamAssistant.Gateway/Services/ServiceCollectionExtensions.cs @@ -1,11 +1,11 @@ using Inc.TeamAssistant.Appraiser.Application.Contracts; -using Inc.TeamAssistant.Appraiser.Backend.Services.CommandFactories; -using Inc.TeamAssistant.Appraiser.Backend.Services.MessageProviders; using Inc.TeamAssistant.Appraiser.Model; using Inc.TeamAssistant.Appraiser.Notifications.Contracts; +using Inc.TeamAssistant.Gateway.Services.CommandFactories; +using Inc.TeamAssistant.Gateway.Services.MessageProviders; using Inc.TeamAssistant.Languages; -namespace Inc.TeamAssistant.Appraiser.Backend.Services; +namespace Inc.TeamAssistant.Gateway.Services; public static class ServiceCollectionExtensions { diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Services/TelegramBotConnector.cs b/src/Inc.TeamAssistant.Gateway/Services/TelegramBotConnector.cs similarity index 93% rename from src/Inc.TeamAssistant.Appraiser.Backend/Services/TelegramBotConnector.cs rename to src/Inc.TeamAssistant.Gateway/Services/TelegramBotConnector.cs index f3617a6f..31b928af 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/Services/TelegramBotConnector.cs +++ b/src/Inc.TeamAssistant.Gateway/Services/TelegramBotConnector.cs @@ -1,6 +1,6 @@ using Telegram.Bot; -namespace Inc.TeamAssistant.Appraiser.Backend.Services; +namespace Inc.TeamAssistant.Gateway.Services; internal sealed class TelegramBotConnector : IHostedService { diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Services/TelegramBotMessageHandler.cs b/src/Inc.TeamAssistant.Gateway/Services/TelegramBotMessageHandler.cs similarity index 98% rename from src/Inc.TeamAssistant.Appraiser.Backend/Services/TelegramBotMessageHandler.cs rename to src/Inc.TeamAssistant.Gateway/Services/TelegramBotMessageHandler.cs index fe73eabc..4ee52075 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/Services/TelegramBotMessageHandler.cs +++ b/src/Inc.TeamAssistant.Gateway/Services/TelegramBotMessageHandler.cs @@ -1,19 +1,19 @@ using System.Runtime.CompilerServices; using FluentValidation; using Inc.TeamAssistant.Appraiser.Application.Contracts; -using Inc.TeamAssistant.Appraiser.Backend.Services.CommandFactories; using Inc.TeamAssistant.Appraiser.Domain.Exceptions; using Inc.TeamAssistant.Appraiser.Notifications.Contracts; -using MediatR; -using Inc.TeamAssistant.Appraiser.Backend.Extensions; +using Inc.TeamAssistant.Gateway.Extensions; +using Inc.TeamAssistant.Gateway.Services.CommandFactories; using Inc.TeamAssistant.Languages; using Inc.TeamAssistant.Users.Extensions; +using MediatR; using Telegram.Bot; using Telegram.Bot.Exceptions; using Telegram.Bot.Types; using Telegram.Bot.Types.ReplyMarkups; -namespace Inc.TeamAssistant.Appraiser.Backend.Services; +namespace Inc.TeamAssistant.Gateway.Services; internal sealed class TelegramBotMessageHandler { diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/Services/TranslateProvider.cs b/src/Inc.TeamAssistant.Gateway/Services/TranslateProvider.cs similarity index 94% rename from src/Inc.TeamAssistant.Appraiser.Backend/Services/TranslateProvider.cs rename to src/Inc.TeamAssistant.Gateway/Services/TranslateProvider.cs index 137a921f..6fe2f7c8 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/Services/TranslateProvider.cs +++ b/src/Inc.TeamAssistant.Gateway/Services/TranslateProvider.cs @@ -2,7 +2,7 @@ using Inc.TeamAssistant.Languages; using Inc.TeamAssistant.Primitives; -namespace Inc.TeamAssistant.Appraiser.Backend.Services; +namespace Inc.TeamAssistant.Gateway.Services; internal sealed class TranslateProvider : ITranslateProvider { diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/TelegramBotOptions.cs b/src/Inc.TeamAssistant.Gateway/TelegramBotOptions.cs similarity index 88% rename from src/Inc.TeamAssistant.Appraiser.Backend/TelegramBotOptions.cs rename to src/Inc.TeamAssistant.Gateway/TelegramBotOptions.cs index 056db80b..05978026 100644 --- a/src/Inc.TeamAssistant.Appraiser.Backend/TelegramBotOptions.cs +++ b/src/Inc.TeamAssistant.Gateway/TelegramBotOptions.cs @@ -1,4 +1,4 @@ -namespace Inc.TeamAssistant.Appraiser.Backend; +namespace Inc.TeamAssistant.Gateway; public sealed class TelegramBotOptions { diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/appsettings.Development.json b/src/Inc.TeamAssistant.Gateway/appsettings.Development.json similarity index 100% rename from src/Inc.TeamAssistant.Appraiser.Backend/appsettings.Development.json rename to src/Inc.TeamAssistant.Gateway/appsettings.Development.json diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/appsettings.Production.json b/src/Inc.TeamAssistant.Gateway/appsettings.Production.json similarity index 100% rename from src/Inc.TeamAssistant.Appraiser.Backend/appsettings.Production.json rename to src/Inc.TeamAssistant.Gateway/appsettings.Production.json diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/appsettings.json b/src/Inc.TeamAssistant.Gateway/appsettings.json similarity index 100% rename from src/Inc.TeamAssistant.Appraiser.Backend/appsettings.json rename to src/Inc.TeamAssistant.Gateway/appsettings.json diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/wwwroot/langs/en.json b/src/Inc.TeamAssistant.Gateway/wwwroot/langs/en.json similarity index 100% rename from src/Inc.TeamAssistant.Appraiser.Backend/wwwroot/langs/en.json rename to src/Inc.TeamAssistant.Gateway/wwwroot/langs/en.json diff --git a/src/Inc.TeamAssistant.Appraiser.Backend/wwwroot/langs/ru.json b/src/Inc.TeamAssistant.Gateway/wwwroot/langs/ru.json similarity index 100% rename from src/Inc.TeamAssistant.Appraiser.Backend/wwwroot/langs/ru.json rename to src/Inc.TeamAssistant.Gateway/wwwroot/langs/ru.json diff --git a/src/Inc.TeamAssistant.Appraiser.Migrations/2022_09_24_0_CreateUsersScheme.cs b/src/Inc.TeamAssistant.Migrations/2022_09_24_0_CreateUsersScheme.cs similarity index 93% rename from src/Inc.TeamAssistant.Appraiser.Migrations/2022_09_24_0_CreateUsersScheme.cs rename to src/Inc.TeamAssistant.Migrations/2022_09_24_0_CreateUsersScheme.cs index 7f42bfe1..38a095c4 100644 --- a/src/Inc.TeamAssistant.Appraiser.Migrations/2022_09_24_0_CreateUsersScheme.cs +++ b/src/Inc.TeamAssistant.Migrations/2022_09_24_0_CreateUsersScheme.cs @@ -1,6 +1,6 @@ using FluentMigrator; -namespace Inc.TeamAssistant.Appraiser.Migrations; +namespace Inc.TeamAssistant.Migrations; [Migration(2022_09_24_0)] public sealed class CreateUsersScheme : Migration diff --git a/src/Inc.TeamAssistant.Appraiser.Migrations/2022_09_24_1_CreateUsersTable.cs b/src/Inc.TeamAssistant.Migrations/2022_09_24_1_CreateUsersTable.cs similarity index 91% rename from src/Inc.TeamAssistant.Appraiser.Migrations/2022_09_24_1_CreateUsersTable.cs rename to src/Inc.TeamAssistant.Migrations/2022_09_24_1_CreateUsersTable.cs index 286366af..7ae17686 100644 --- a/src/Inc.TeamAssistant.Appraiser.Migrations/2022_09_24_1_CreateUsersTable.cs +++ b/src/Inc.TeamAssistant.Migrations/2022_09_24_1_CreateUsersTable.cs @@ -1,6 +1,6 @@ using FluentMigrator; -namespace Inc.TeamAssistant.Appraiser.Migrations; +namespace Inc.TeamAssistant.Migrations; [Migration(2022_09_24_1)] public sealed class CreateUsersTable : Migration diff --git a/src/Inc.TeamAssistant.Appraiser.Migrations/2022_12_12_0_CreateMapsScheme.cs b/src/Inc.TeamAssistant.Migrations/2022_12_12_0_CreateMapsScheme.cs similarity index 93% rename from src/Inc.TeamAssistant.Appraiser.Migrations/2022_12_12_0_CreateMapsScheme.cs rename to src/Inc.TeamAssistant.Migrations/2022_12_12_0_CreateMapsScheme.cs index a45cf5e3..45223d1e 100644 --- a/src/Inc.TeamAssistant.Appraiser.Migrations/2022_12_12_0_CreateMapsScheme.cs +++ b/src/Inc.TeamAssistant.Migrations/2022_12_12_0_CreateMapsScheme.cs @@ -1,6 +1,6 @@ using FluentMigrator; -namespace Inc.TeamAssistant.Appraiser.Migrations; +namespace Inc.TeamAssistant.Migrations; [Migration(2022_12_12_0)] public sealed class CreateMapsScheme : Migration diff --git a/src/Inc.TeamAssistant.Appraiser.Migrations/2022_12_12_1_CreateMapTable.cs b/src/Inc.TeamAssistant.Migrations/2022_12_12_1_CreateMapTable.cs similarity index 97% rename from src/Inc.TeamAssistant.Appraiser.Migrations/2022_12_12_1_CreateMapTable.cs rename to src/Inc.TeamAssistant.Migrations/2022_12_12_1_CreateMapTable.cs index af4ac116..d76d77aa 100644 --- a/src/Inc.TeamAssistant.Appraiser.Migrations/2022_12_12_1_CreateMapTable.cs +++ b/src/Inc.TeamAssistant.Migrations/2022_12_12_1_CreateMapTable.cs @@ -1,6 +1,6 @@ using FluentMigrator; -namespace Inc.TeamAssistant.Appraiser.Migrations; +namespace Inc.TeamAssistant.Migrations; [Migration(2022_12_12_1)] public sealed class CreateMapTable : Migration diff --git a/src/Inc.TeamAssistant.Appraiser.Migrations/2022_12_21_0_CreateReviewScheme.cs b/src/Inc.TeamAssistant.Migrations/2022_12_21_0_CreateReviewScheme.cs similarity index 93% rename from src/Inc.TeamAssistant.Appraiser.Migrations/2022_12_21_0_CreateReviewScheme.cs rename to src/Inc.TeamAssistant.Migrations/2022_12_21_0_CreateReviewScheme.cs index 46c44db6..ee839c28 100644 --- a/src/Inc.TeamAssistant.Appraiser.Migrations/2022_12_21_0_CreateReviewScheme.cs +++ b/src/Inc.TeamAssistant.Migrations/2022_12_21_0_CreateReviewScheme.cs @@ -1,6 +1,6 @@ using FluentMigrator; -namespace Inc.TeamAssistant.Appraiser.Migrations; +namespace Inc.TeamAssistant.Migrations; [Migration(2022_12_21_0)] public sealed class CreateReviewScheme : Migration diff --git a/src/Inc.TeamAssistant.Appraiser.Migrations/2022_12_21_1_CreateReviewTable.cs b/src/Inc.TeamAssistant.Migrations/2022_12_21_1_CreateReviewTable.cs similarity index 98% rename from src/Inc.TeamAssistant.Appraiser.Migrations/2022_12_21_1_CreateReviewTable.cs rename to src/Inc.TeamAssistant.Migrations/2022_12_21_1_CreateReviewTable.cs index bbe6df4b..145cfe3b 100644 --- a/src/Inc.TeamAssistant.Appraiser.Migrations/2022_12_21_1_CreateReviewTable.cs +++ b/src/Inc.TeamAssistant.Migrations/2022_12_21_1_CreateReviewTable.cs @@ -1,6 +1,6 @@ using FluentMigrator; -namespace Inc.TeamAssistant.Appraiser.Migrations; +namespace Inc.TeamAssistant.Migrations; [Migration(2022_12_21_1)] public sealed class CreateReviewTable : Migration diff --git a/src/Inc.TeamAssistant.Appraiser.Migrations/2023_01_02_0_CreateGenericScheme.cs b/src/Inc.TeamAssistant.Migrations/2023_01_02_0_CreateGenericScheme.cs similarity index 93% rename from src/Inc.TeamAssistant.Appraiser.Migrations/2023_01_02_0_CreateGenericScheme.cs rename to src/Inc.TeamAssistant.Migrations/2023_01_02_0_CreateGenericScheme.cs index 1b6528f1..6030161a 100644 --- a/src/Inc.TeamAssistant.Appraiser.Migrations/2023_01_02_0_CreateGenericScheme.cs +++ b/src/Inc.TeamAssistant.Migrations/2023_01_02_0_CreateGenericScheme.cs @@ -1,6 +1,6 @@ using FluentMigrator; -namespace Inc.TeamAssistant.Appraiser.Migrations; +namespace Inc.TeamAssistant.Migrations; [Migration(2023_01_02_0)] public sealed class CreateGenericScheme : Migration diff --git a/src/Inc.TeamAssistant.Appraiser.Migrations/2023_01_02_1_CreateHolidaysTable.cs b/src/Inc.TeamAssistant.Migrations/2023_01_02_1_CreateHolidaysTable.cs similarity index 96% rename from src/Inc.TeamAssistant.Appraiser.Migrations/2023_01_02_1_CreateHolidaysTable.cs rename to src/Inc.TeamAssistant.Migrations/2023_01_02_1_CreateHolidaysTable.cs index f578e6fa..e94a012e 100644 --- a/src/Inc.TeamAssistant.Appraiser.Migrations/2023_01_02_1_CreateHolidaysTable.cs +++ b/src/Inc.TeamAssistant.Migrations/2023_01_02_1_CreateHolidaysTable.cs @@ -1,6 +1,6 @@ using FluentMigrator; -namespace Inc.TeamAssistant.Appraiser.Migrations; +namespace Inc.TeamAssistant.Migrations; [Migration(2023_01_02_1)] public sealed class CreateHolidaysTable : Migration diff --git a/src/Inc.TeamAssistant.Appraiser.Migrations/2023_01_11_0_AddTaskDecline.cs b/src/Inc.TeamAssistant.Migrations/2023_01_11_0_AddTaskDecline.cs similarity index 95% rename from src/Inc.TeamAssistant.Appraiser.Migrations/2023_01_11_0_AddTaskDecline.cs rename to src/Inc.TeamAssistant.Migrations/2023_01_11_0_AddTaskDecline.cs index 4e4f0cd0..1e2cdb27 100644 --- a/src/Inc.TeamAssistant.Appraiser.Migrations/2023_01_11_0_AddTaskDecline.cs +++ b/src/Inc.TeamAssistant.Migrations/2023_01_11_0_AddTaskDecline.cs @@ -1,6 +1,6 @@ using FluentMigrator; -namespace Inc.TeamAssistant.Appraiser.Migrations; +namespace Inc.TeamAssistant.Migrations; [Migration(2023_01_11_0)] public sealed class AddTaskDecline : Migration diff --git a/src/Inc.TeamAssistant.Appraiser.Migrations/2023_01_12_0_AddMessageIdToTask.cs b/src/Inc.TeamAssistant.Migrations/2023_01_12_0_AddMessageIdToTask.cs similarity index 95% rename from src/Inc.TeamAssistant.Appraiser.Migrations/2023_01_12_0_AddMessageIdToTask.cs rename to src/Inc.TeamAssistant.Migrations/2023_01_12_0_AddMessageIdToTask.cs index 28c148c6..120fa0fa 100644 --- a/src/Inc.TeamAssistant.Appraiser.Migrations/2023_01_12_0_AddMessageIdToTask.cs +++ b/src/Inc.TeamAssistant.Migrations/2023_01_12_0_AddMessageIdToTask.cs @@ -1,6 +1,6 @@ using FluentMigrator; -namespace Inc.TeamAssistant.Appraiser.Migrations; +namespace Inc.TeamAssistant.Migrations; [Migration(2023_01_12_0)] public sealed class AddMessageIdToTask : Migration diff --git a/src/Inc.TeamAssistant.Appraiser.Migrations/2023_01_15_0_AddPerson.cs b/src/Inc.TeamAssistant.Migrations/2023_01_15_0_AddPerson.cs similarity index 97% rename from src/Inc.TeamAssistant.Appraiser.Migrations/2023_01_15_0_AddPerson.cs rename to src/Inc.TeamAssistant.Migrations/2023_01_15_0_AddPerson.cs index 5d4f724e..02b5bc9c 100644 --- a/src/Inc.TeamAssistant.Appraiser.Migrations/2023_01_15_0_AddPerson.cs +++ b/src/Inc.TeamAssistant.Migrations/2023_01_15_0_AddPerson.cs @@ -1,6 +1,6 @@ using FluentMigrator; -namespace Inc.TeamAssistant.Appraiser.Migrations; +namespace Inc.TeamAssistant.Migrations; [Migration(2023_01_15_0)] public sealed class AddPerson : Migration diff --git a/src/Inc.TeamAssistant.Appraiser.Migrations/2023_01_17_0_ChangeReviewHistory.cs b/src/Inc.TeamAssistant.Migrations/2023_01_17_0_ChangeReviewHistory.cs similarity index 97% rename from src/Inc.TeamAssistant.Appraiser.Migrations/2023_01_17_0_ChangeReviewHistory.cs rename to src/Inc.TeamAssistant.Migrations/2023_01_17_0_ChangeReviewHistory.cs index ddddec93..a7ad50f5 100644 --- a/src/Inc.TeamAssistant.Appraiser.Migrations/2023_01_17_0_ChangeReviewHistory.cs +++ b/src/Inc.TeamAssistant.Migrations/2023_01_17_0_ChangeReviewHistory.cs @@ -1,6 +1,6 @@ using FluentMigrator; -namespace Inc.TeamAssistant.Appraiser.Migrations; +namespace Inc.TeamAssistant.Migrations; [Migration(2023_01_17_0)] public class ChangeReviewHistory : Migration diff --git a/src/Inc.TeamAssistant.Appraiser.Migrations/2023_01_25_0_ChangePersonsStore.cs b/src/Inc.TeamAssistant.Migrations/2023_01_25_0_ChangePersonsStore.cs similarity index 98% rename from src/Inc.TeamAssistant.Appraiser.Migrations/2023_01_25_0_ChangePersonsStore.cs rename to src/Inc.TeamAssistant.Migrations/2023_01_25_0_ChangePersonsStore.cs index 3e467713..f338a496 100644 --- a/src/Inc.TeamAssistant.Appraiser.Migrations/2023_01_25_0_ChangePersonsStore.cs +++ b/src/Inc.TeamAssistant.Migrations/2023_01_25_0_ChangePersonsStore.cs @@ -1,6 +1,6 @@ using FluentMigrator; -namespace Inc.TeamAssistant.Appraiser.Migrations; +namespace Inc.TeamAssistant.Migrations; [Migration(2023_01_25_0)] public class ChangePersonsStore : Migration diff --git a/src/Inc.TeamAssistant.Appraiser.Migrations/DatabaseInitialManager.cs b/src/Inc.TeamAssistant.Migrations/DatabaseInitialManager.cs similarity index 96% rename from src/Inc.TeamAssistant.Appraiser.Migrations/DatabaseInitialManager.cs rename to src/Inc.TeamAssistant.Migrations/DatabaseInitialManager.cs index 2d44eaff..d56e33fe 100644 --- a/src/Inc.TeamAssistant.Appraiser.Migrations/DatabaseInitialManager.cs +++ b/src/Inc.TeamAssistant.Migrations/DatabaseInitialManager.cs @@ -1,7 +1,7 @@ using Dapper; using Npgsql; -namespace Inc.TeamAssistant.Appraiser.Migrations; +namespace Inc.TeamAssistant.Migrations; public sealed class DatabaseInitialManager { diff --git a/src/Inc.TeamAssistant.Appraiser.Migrations/Inc.TeamAssistant.Appraiser.Migrations.csproj b/src/Inc.TeamAssistant.Migrations/Inc.TeamAssistant.Migrations.csproj similarity index 100% rename from src/Inc.TeamAssistant.Appraiser.Migrations/Inc.TeamAssistant.Appraiser.Migrations.csproj rename to src/Inc.TeamAssistant.Migrations/Inc.TeamAssistant.Migrations.csproj diff --git a/src/Inc.TeamAssistant.Appraiser.Migrations/MigrationRunnerWrapper.cs b/src/Inc.TeamAssistant.Migrations/MigrationRunnerWrapper.cs similarity index 96% rename from src/Inc.TeamAssistant.Appraiser.Migrations/MigrationRunnerWrapper.cs rename to src/Inc.TeamAssistant.Migrations/MigrationRunnerWrapper.cs index d18219e1..c69aad47 100644 --- a/src/Inc.TeamAssistant.Appraiser.Migrations/MigrationRunnerWrapper.cs +++ b/src/Inc.TeamAssistant.Migrations/MigrationRunnerWrapper.cs @@ -1,7 +1,7 @@ using FluentMigrator.Runner; using Microsoft.Extensions.DependencyInjection; -namespace Inc.TeamAssistant.Appraiser.Migrations; +namespace Inc.TeamAssistant.Migrations; public sealed class MigrationRunnerWrapper { diff --git a/src/Inc.TeamAssistant.Appraiser.Migrations/VersionTableSettings.cs b/src/Inc.TeamAssistant.Migrations/VersionTableSettings.cs similarity index 92% rename from src/Inc.TeamAssistant.Appraiser.Migrations/VersionTableSettings.cs rename to src/Inc.TeamAssistant.Migrations/VersionTableSettings.cs index 424d126f..5108d32d 100644 --- a/src/Inc.TeamAssistant.Appraiser.Migrations/VersionTableSettings.cs +++ b/src/Inc.TeamAssistant.Migrations/VersionTableSettings.cs @@ -1,6 +1,6 @@ using FluentMigrator.Runner.VersionTableInfo; -namespace Inc.TeamAssistant.Appraiser.Migrations; +namespace Inc.TeamAssistant.Migrations; internal sealed class VersionTableSettings : IVersionTableMetaData { diff --git a/src/Inc.TeamAssistant.Appraiser.Migrations/scripts/create-template.sql b/src/Inc.TeamAssistant.Migrations/scripts/create-template.sql similarity index 100% rename from src/Inc.TeamAssistant.Appraiser.Migrations/scripts/create-template.sql rename to src/Inc.TeamAssistant.Migrations/scripts/create-template.sql diff --git a/src/Inc.TeamAssistant.Appraiser.MigrationsRunner/Inc.TeamAssistant.Appraiser.MigrationsRunner.csproj b/src/Inc.TeamAssistant.MigrationsRunner/Inc.TeamAssistant.MigrationsRunner.csproj similarity index 69% rename from src/Inc.TeamAssistant.Appraiser.MigrationsRunner/Inc.TeamAssistant.Appraiser.MigrationsRunner.csproj rename to src/Inc.TeamAssistant.MigrationsRunner/Inc.TeamAssistant.MigrationsRunner.csproj index cf795761..affd2692 100644 --- a/src/Inc.TeamAssistant.Appraiser.MigrationsRunner/Inc.TeamAssistant.Appraiser.MigrationsRunner.csproj +++ b/src/Inc.TeamAssistant.MigrationsRunner/Inc.TeamAssistant.MigrationsRunner.csproj @@ -6,6 +6,6 @@ - + diff --git a/src/Inc.TeamAssistant.Appraiser.MigrationsRunner/Program.cs b/src/Inc.TeamAssistant.MigrationsRunner/Program.cs similarity index 94% rename from src/Inc.TeamAssistant.Appraiser.MigrationsRunner/Program.cs rename to src/Inc.TeamAssistant.MigrationsRunner/Program.cs index 1ab712cb..b6ad652b 100644 --- a/src/Inc.TeamAssistant.Appraiser.MigrationsRunner/Program.cs +++ b/src/Inc.TeamAssistant.MigrationsRunner/Program.cs @@ -1,7 +1,7 @@ -using Inc.TeamAssistant.Appraiser.Migrations; +using Inc.TeamAssistant.Migrations; using McMaster.Extensions.CommandLineUtils; -namespace Inc.TeamAssistant.Appraiser.MigrationsRunner +namespace Inc.TeamAssistant.MigrationsRunner { sealed class Program {