From 1756fd6973a7f1d08ae1018d7012b67ac6025f43 Mon Sep 17 00:00:00 2001 From: marwen saad Date: Sun, 25 Aug 2024 18:25:10 +0100 Subject: [PATCH] Fix naming,namespace,usings --- .../AzureDevopsEndpoints.cs | 8 ++++- .../Clients/GlocalUsings.cs | 2 +- .../ExtensionServiceRegistration.cs | 4 ++- .../GlobalExceptionHandler.cs | 4 ++- .../AzureDevopsService.API/GlobalUsings.cs | 13 +------- .../AzureDevopsService.API/Program.cs | 1 + .../IProjectService.cs | 2 +- .../IUserProfileApiClient.cs | 4 +-- .../UserProfileApiClient.cs | 5 +-- .../ServiceHelper/HttpClientHelper.cs | 2 +- .../ServiceHelper/WorkItem/WorkItemHelper.cs | 4 +-- .../WorkItem/IWorkItemExternalService.cs | 9 ++---- .../WorkItem/WorkItemExternalService.cs | 6 +--- .../ExtentionRegistrationService.cs | 5 +-- .../GlobalUsings.cs | 26 +++++++--------- .../AllProjectUnderOrganizationRequest.cs | 9 +----- .../AzureRequestResourceModel/BaseRequest.cs | 9 +----- .../GetUserOrganizationRequest.cs | 9 ++---- .../AzureRequestResourceModel/WiqlRequest.cs | 5 --- .../WorkItemRequest.cs | 5 +-- .../AzureResponceModel/AllProjectResponce.cs | 10 +----- .../AzureResponceModel/Column.cs | 2 +- .../CustomProblemDetailsResponce.cs | 10 +----- .../AzureResponceModel/Project.cs | 8 +---- .../AzureResponceModel/UserAccount.cs | 16 +--------- .../AzureResponceModel/UserOrganization.cs | 8 +---- .../AzureResponceModel/UserProfile.cs | 10 +----- .../WiqlBadRequestResponce.cs | 31 +++++-------------- .../AzureResponceModel/WiqlResponses.cs | 11 +------ .../AzureResponceModel/WorkItem.cs | 2 +- .../Constant/AzureResponseMessage.cs | 2 +- .../GlobalUsings.cs | 7 +++-- .../AzureDevopsServiceHookController.cs | 5 +-- .../WebhookService.API/DocumentationFile.xml | 8 ++--- .../ExtensionServiceRegistration.cs | 2 +- .../WebhookService.API/GlobalUsings.cs | 11 ++++++- .../Middelware/GlobalExceptionHandler.cs | 2 +- .../WebhookService.API/Program.cs | 7 ----- .../AzureWebhookServiceRegistration.cs | 4 +-- ...zureBuildAndReleaseEventsCommandHandler.cs | 5 +-- .../SendAzureCodeEventsCommandHandler.cs | 5 +-- .../SendAzurePipelineEventCommandHandler.cs | 5 +-- .../SendWorkItemEventCommandHandler.cs | 5 +-- ...zureBuildAndReleaseEventsCommandHandler.cs | 5 +-- .../SendAzureCodeEventsCommandHandler.cs | 5 +-- .../SendAzurePipelineEventCommandHandler.cs | 5 +-- .../SendWorkItemEventCommandHandler.cs | 5 +-- .../GlobalUsings.cs | 6 +++- .../Constant/AzureWebhookEventTypes.cs | 4 +-- .../SharedModels/AzureWebhookModelEvent.cs | 5 ++- .../SharedModels/EventModels/Account.cs | 2 +- .../SharedModels/EventModels/Author.cs | 2 +- .../SharedModels/EventModels/AzurePipeline.cs | 2 +- .../SharedModels/EventModels/BaseCommit.cs | 2 +- .../SharedModels/EventModels/Change.cs | 2 +- .../SharedModels/EventModels/Collection.cs | 2 +- .../SharedModels/EventModels/Commit.cs | 2 +- .../SharedModels/EventModels/Committer.cs | 2 +- .../SharedModels/EventModels/CreatedBy.cs | 2 +- .../SharedModels/EventModels/Definition.cs | 2 +- .../SharedModels/EventModels/Fileds.cs | 2 +- .../SharedModels/EventModels/Job.cs | 2 +- .../SharedModels/EventModels/JobLink.cs | 2 +- .../SharedModels/EventModels/LastChangedBy.cs | 2 +- .../SharedModels/EventModels/Link.cs | 2 +- .../SharedModels/EventModels/Links.cs | 2 +- .../SharedModels/EventModels/Logs.cs | 2 +- .../SharedModels/EventModels/Message.cs | 2 +- .../SharedModels/EventModels/Project.cs | 2 +- .../SharedModels/EventModels/PushedBy.cs | 2 +- .../SharedModels/EventModels/RefUpdate.cs | 2 +- .../SharedModels/EventModels/Repository.cs | 2 +- .../EventModels/RepositoryChange.cs | 2 +- .../SharedModels/EventModels/RequestedBy.cs | 2 +- .../SharedModels/EventModels/RequestedFor.cs | 2 +- .../SharedModels/EventModels/Resource.cs | 2 +- .../EventModels/ResourceContainers.cs | 2 +- .../SharedModels/EventModels/Reviewer.cs | 2 +- .../SharedModels/EventModels/Run.cs | 2 +- .../SharedModels/EventModels/Stage.cs | 2 +- .../SharedModels/EventModels/Url.cs | 2 +- .../BuildAndReleaseResource.cs | 2 +- .../ResourcesModels/CodeResource.cs | 4 +-- .../ResourcesModels/PipelinesResource.cs | 2 +- .../RunJobStateChangedResource.cs | 4 ++- .../ResourcesModels/WorkItemResource.cs | 4 ++- .../WebhookService.Contracts/GlobalUsings.cs | 4 +-- .../Settings/RabbitMqSettings.cs | 2 +- .../ExtensionServiceRegistration.cs | 5 +-- .../IdentityService.API/GlobalUsings.cs | 3 +- .../IdentityService.API/Program.cs | 2 ++ .../Controllers/TimeLogServiceController.cs | 18 +++++++---- .../ExtentionServiceRegistration.cs | 8 ++++- .../TimeLogService.API/GlobalUsings.cs | 12 +++---- .../Middelware/GlobalExceptionHandler.cs | 9 +++++- .../TimeLogService.API/Program.cs | 8 +++-- .../ApplicationServiceRegistration.cs | 10 +----- .../AutoMapping/MappingProfile.cs | 9 +++++- .../AddOrganization/AddOrganizationCommand.cs | 2 +- .../AddOrganizationCommandHandler.cs | 5 +-- .../DeleteOrganizationCommand.cs | 2 +- .../DeleteOrganizationCommandHandler.cs | 4 +-- .../UpdateOrganizationCommand.cs | 2 +- .../UpdateOrganizationCommandHandler.cs | 2 +- .../GetOrganization/GetOrganizationsQuery.cs | 2 +- .../GetOrganizationsQueryHandler.cs | 5 +-- .../GetOrganizationByIdQuery.cs | 2 +- .../GetOrganizationQueryHandler.cs | 2 +- .../BuildAndReleasEventsConsumer.cs | 10 +----- .../WebhookConsumer/CodeEventsConsumer.cs | 10 +----- .../WebhookConsumer/PipelineEventConsumer.cs | 10 +----- .../WebhookConsumer/WorkItemEventConsumer.cs | 2 +- .../GlobalUsings.cs | 20 +++++++++--- .../TimeLogService.Application.csproj | 1 + .../DTOs/Request/OrganizationRequest.cs | 2 +- .../DTOs/Request/ProjectRequest.cs | 2 +- .../DTOs/Request/WorkItemHistoryRequest.cs | 2 +- .../DTOs/Request/WorkItemRequest.cs | 2 +- .../DTOs/Request/WorkItemTimeLogRequest.cs | 2 +- .../DTOs/Respons/OrganizationResponse.cs | 2 +- .../DTOs/Respons/ProjectResponse.cs | 2 +- .../DTOs/Respons/WorkItemHistoryResponse.cs | 2 +- .../DTOs/Respons/WorkItemResponse.cs | 2 +- .../DTOs/Respons/WorkItemTimeLogResponse.cs | 2 +- .../Settings/RabbitMqSettings.cs | 2 +- .../TimeLogService.Contracts.csproj | 4 --- .../TimeLogService.Domain/GlobalUsings.cs | 5 +-- .../Interfaces/Repositories/IRepository.cs | 2 +- .../Models/dbo/BaseEntity.cs | 4 +-- .../Models/dbo/Organization.cs | 2 +- .../Models/dbo/Project.cs | 2 +- .../Models/dbo/WorkItem.cs | 2 +- .../Models/dbo/WorkItemHistory.cs | 2 +- .../Models/dbo/WorkItemTimeLog.cs | 2 +- .../TimeLogService.Domain.csproj | 2 +- .../OrganizationConfiguration.cs | 4 +-- .../Configurations/ProjectConfiguration.cs | 2 +- .../Configurations/WorkItemConfiguration.cs | 2 +- .../WorkItemHistoryConfiguration.cs | 2 +- .../WorkItemTimeLogConfiguration.cs | 2 +- ...omAionTimeTimeLogServiceDataBaseContext.cs | 6 +--- .../GlobalUsings.cs | 16 ++++++++-- .../InfrastructureServiceRegistration.cs | 8 +---- .../MultiTenancy/MultiTenancyService.cs | 6 +--- .../Repositories/Repository.cs | 4 +-- .../WorkItemsUnitTest.cs | 2 -- 146 files changed, 272 insertions(+), 423 deletions(-) diff --git a/src/AzureDevopsService/AzureDevopsService.API/AzureDevopsEndpoints.cs b/src/AzureDevopsService/AzureDevopsService.API/AzureDevopsEndpoints.cs index 7515b7e..9f34967 100644 --- a/src/AzureDevopsService/AzureDevopsService.API/AzureDevopsEndpoints.cs +++ b/src/AzureDevopsService/AzureDevopsService.API/AzureDevopsEndpoints.cs @@ -1,4 +1,10 @@ -namespace AzureDevopsService.API; +using AzureDevopsService.Application.AzureDevopsExternalResourceService.OrganizationProjectService; +using AzureDevopsService.Application.AzureDevopsExternalResourceService.ProfileUserService; +using AzureDevopsService.Application.AzureDevopsExternalResourceService.WorkItem; +using AzureDevopsService.Contracts.AzureRequestResourceModel; +using AzureDevopsService.Contracts.AzureResponceModel; + +namespace AzureDevopsService.API; public static class AzureDevopsEndpoints { diff --git a/src/AzureDevopsService/AzureDevopsService.API/Clients/GlocalUsings.cs b/src/AzureDevopsService/AzureDevopsService.API/Clients/GlocalUsings.cs index 96fcab3..5f28270 100644 --- a/src/AzureDevopsService/AzureDevopsService.API/Clients/GlocalUsings.cs +++ b/src/AzureDevopsService/AzureDevopsService.API/Clients/GlocalUsings.cs @@ -1 +1 @@ -global using TunNetCom.AionTime.AzureDevopsService.API; \ No newline at end of file + \ No newline at end of file diff --git a/src/AzureDevopsService/AzureDevopsService.API/ExtensionServiceRegistration.cs b/src/AzureDevopsService/AzureDevopsService.API/ExtensionServiceRegistration.cs index abe1aa0..62d4719 100644 --- a/src/AzureDevopsService/AzureDevopsService.API/ExtensionServiceRegistration.cs +++ b/src/AzureDevopsService/AzureDevopsService.API/ExtensionServiceRegistration.cs @@ -1,4 +1,6 @@ -namespace TunNetCom.AionTime.AzureDevopsService.API; +using AzureDevopsService.API; + +namespace AzureDevopsService.API; public static class ExtensionServiceRegistration { diff --git a/src/AzureDevopsService/AzureDevopsService.API/GlobalExceptionHandler.cs b/src/AzureDevopsService/AzureDevopsService.API/GlobalExceptionHandler.cs index d2804ae..e3780a7 100644 --- a/src/AzureDevopsService/AzureDevopsService.API/GlobalExceptionHandler.cs +++ b/src/AzureDevopsService/AzureDevopsService.API/GlobalExceptionHandler.cs @@ -1,4 +1,6 @@ -namespace TunNetCom.AionTime.AzureDevopsService.API; +using AzureDevopsService.API; + +namespace AzureDevopsService.API; public class GlobalExceptionHandler(ILogger logger) : IExceptionHandler { diff --git a/src/AzureDevopsService/AzureDevopsService.API/GlobalUsings.cs b/src/AzureDevopsService/AzureDevopsService.API/GlobalUsings.cs index ac6535b..2915d81 100644 --- a/src/AzureDevopsService/AzureDevopsService.API/GlobalUsings.cs +++ b/src/AzureDevopsService/AzureDevopsService.API/GlobalUsings.cs @@ -33,15 +33,4 @@ global using System.Text.Json.Serialization; global using System.Text.RegularExpressions; global using System.Threading; -global using System.Threading.Tasks; -global using TunNetCom; -global using TunNetCom.AionTime; -global using TunNetCom.AionTime.AzureDevopsService; -global using TunNetCom.AionTime.AzureDevopsService.API; -global using TunNetCom.AionTime.AzureDevopsService.Application; -global using TunNetCom.AionTime.AzureDevopsService.Application.AzureDevopsExternalResourceService; -global using TunNetCom.AionTime.AzureDevopsService.Application.AzureDevopsExternalResourceService.OrganizationProjectService; -global using TunNetCom.AionTime.AzureDevopsService.Application.AzureDevopsExternalResourceService.ProfileUserService; -global using TunNetCom.AionTime.AzureDevopsService.Application.AzureDevopsExternalResourceService.WorkItem; -global using TunNetCom.AionTime.AzureDevopsService.Contracts.AzureRequestResourceModel; -global using TunNetCom.AionTime.AzureDevopsService.Contracts.AzureResponceModel; \ No newline at end of file +global using System.Threading.Tasks; \ No newline at end of file diff --git a/src/AzureDevopsService/AzureDevopsService.API/Program.cs b/src/AzureDevopsService/AzureDevopsService.API/Program.cs index 87768a1..28b823c 100644 --- a/src/AzureDevopsService/AzureDevopsService.API/Program.cs +++ b/src/AzureDevopsService/AzureDevopsService.API/Program.cs @@ -1,4 +1,5 @@ using AzureDevopsService.API; +using AzureDevopsService.Application; Log.Logger = new LoggerConfiguration() .MinimumLevel.Override("Microsoft", LogEventLevel.Information) diff --git a/src/AzureDevopsService/AzureDevopsService.Application/AzureDevopsExternalResourceService/OrganizationProjectService/IProjectService.cs b/src/AzureDevopsService/AzureDevopsService.Application/AzureDevopsExternalResourceService/OrganizationProjectService/IProjectService.cs index 9398bf1..c6fdce7 100644 --- a/src/AzureDevopsService/AzureDevopsService.Application/AzureDevopsExternalResourceService/OrganizationProjectService/IProjectService.cs +++ b/src/AzureDevopsService/AzureDevopsService.Application/AzureDevopsExternalResourceService/OrganizationProjectService/IProjectService.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevopsService.Application.AzureDevopsExternalResourceService.OrganizationProjectService; +namespace AzureDevopsService.Application.AzureDevopsExternalResourceService.OrganizationProjectService; public interface IProjectService { diff --git a/src/AzureDevopsService/AzureDevopsService.Application/AzureDevopsExternalResourceService/ProfileUserService/IUserProfileApiClient.cs b/src/AzureDevopsService/AzureDevopsService.Application/AzureDevopsExternalResourceService/ProfileUserService/IUserProfileApiClient.cs index 3aaa589..0d4be06 100644 --- a/src/AzureDevopsService/AzureDevopsService.Application/AzureDevopsExternalResourceService/ProfileUserService/IUserProfileApiClient.cs +++ b/src/AzureDevopsService/AzureDevopsService.Application/AzureDevopsExternalResourceService/ProfileUserService/IUserProfileApiClient.cs @@ -1,6 +1,4 @@ -using AzureDevopsService.Contracts.AzureRequestResourceModel; - -namespace TunNetCom.AionTime.AzureDevopsService.Application.AzureDevopsExternalResourceService.ProfileUserService +namespace AzureDevopsService.Application.AzureDevopsExternalResourceService.ProfileUserService { public interface IUserProfileApiClient { diff --git a/src/AzureDevopsService/AzureDevopsService.Application/AzureDevopsExternalResourceService/ProfileUserService/UserProfileApiClient.cs b/src/AzureDevopsService/AzureDevopsService.Application/AzureDevopsExternalResourceService/ProfileUserService/UserProfileApiClient.cs index b86bb8a..ff52460 100644 --- a/src/AzureDevopsService/AzureDevopsService.Application/AzureDevopsExternalResourceService/ProfileUserService/UserProfileApiClient.cs +++ b/src/AzureDevopsService/AzureDevopsService.Application/AzureDevopsExternalResourceService/ProfileUserService/UserProfileApiClient.cs @@ -1,7 +1,4 @@ -using AzureDevopsService.Contracts.AzureRequestResourceModel; -using TunNetCom.AionTime.AzureDevopsService.Contracts.Constant; - -namespace TunNetCom.AionTime.AzureDevopsService.Application.AzureDevopsExternalResourceService.ProfileUserService; +namespace AzureDevopsService.Application.AzureDevopsExternalResourceService.ProfileUserService; public class UserProfileApiClient(HttpClient httpClient, ILogger logger) : IUserProfileApiClient { diff --git a/src/AzureDevopsService/AzureDevopsService.Application/AzureDevopsExternalResourceService/ServiceHelper/HttpClientHelper.cs b/src/AzureDevopsService/AzureDevopsService.Application/AzureDevopsExternalResourceService/ServiceHelper/HttpClientHelper.cs index 1afec6e..fb94a50 100644 --- a/src/AzureDevopsService/AzureDevopsService.Application/AzureDevopsExternalResourceService/ServiceHelper/HttpClientHelper.cs +++ b/src/AzureDevopsService/AzureDevopsService.Application/AzureDevopsExternalResourceService/ServiceHelper/HttpClientHelper.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevopsService.Application.AzureDevopsExternalResourceService.ServiceHelper; +namespace AzureDevopsService.Application.AzureDevopsExternalResourceService.ServiceHelper; public static class HttpClientHelper { diff --git a/src/AzureDevopsService/AzureDevopsService.Application/AzureDevopsExternalResourceService/ServiceHelper/WorkItem/WorkItemHelper.cs b/src/AzureDevopsService/AzureDevopsService.Application/AzureDevopsExternalResourceService/ServiceHelper/WorkItem/WorkItemHelper.cs index ab76716..c1ec011 100644 --- a/src/AzureDevopsService/AzureDevopsService.Application/AzureDevopsExternalResourceService/ServiceHelper/WorkItem/WorkItemHelper.cs +++ b/src/AzureDevopsService/AzureDevopsService.Application/AzureDevopsExternalResourceService/ServiceHelper/WorkItem/WorkItemHelper.cs @@ -1,6 +1,4 @@ -using AzureDevopsService.Contracts.AzureRequestResourceModel; - -namespace TunNetCom.AionTime.AzureDevopsService.Application.AzureDevopsExternalResourceService.ServiceHelper.WorkItem; +namespace AzureDevopsService.Application.AzureDevopsExternalResourceService.ServiceHelper.WorkItem; public static class WorkItemHelper { diff --git a/src/AzureDevopsService/AzureDevopsService.Application/AzureDevopsExternalResourceService/WorkItem/IWorkItemExternalService.cs b/src/AzureDevopsService/AzureDevopsService.Application/AzureDevopsExternalResourceService/WorkItem/IWorkItemExternalService.cs index 13ecd0e..b4ef255 100644 --- a/src/AzureDevopsService/AzureDevopsService.Application/AzureDevopsExternalResourceService/WorkItem/IWorkItemExternalService.cs +++ b/src/AzureDevopsService/AzureDevopsService.Application/AzureDevopsExternalResourceService/WorkItem/IWorkItemExternalService.cs @@ -1,9 +1,6 @@ -using AzureDevopsService.Contracts.AzureResponceModel; +namespace AzureDevopsService.Application.AzureDevopsExternalResourceService.WorkItem; -namespace TunNetCom.AionTime.AzureDevopsService.Application.AzureDevopsExternalResourceService.WorkItem +public interface IWorkItemExternalService { - public interface IWorkItemExternalService - { - Task> GetWorkItemByUser(WorkItemRequest resource); - } + Task> GetWorkItemByUser(WorkItemRequest resource); } \ No newline at end of file diff --git a/src/AzureDevopsService/AzureDevopsService.Application/AzureDevopsExternalResourceService/WorkItem/WorkItemExternalService.cs b/src/AzureDevopsService/AzureDevopsService.Application/AzureDevopsExternalResourceService/WorkItem/WorkItemExternalService.cs index 8d1a294..cae77dc 100644 --- a/src/AzureDevopsService/AzureDevopsService.Application/AzureDevopsExternalResourceService/WorkItem/WorkItemExternalService.cs +++ b/src/AzureDevopsService/AzureDevopsService.Application/AzureDevopsExternalResourceService/WorkItem/WorkItemExternalService.cs @@ -1,8 +1,4 @@ -using AzureDevopsService.Contracts.AzureRequestResourceModel; -using AzureDevopsService.Contracts.AzureResponceModel; -using TunNetCom.AionTime.AzureDevopsService.Application.AzureDevopsExternalResourceService.ServiceHelper.WorkItem; - -namespace TunNetCom.AionTime.AzureDevopsService.Application.AzureDevopsExternalResourceService.WorkItem; +namespace AzureDevopsService.Application.AzureDevopsExternalResourceService.WorkItem; public class WorkItemExternalService(HttpClient httpClient, ILogger logger) : IWorkItemExternalService { diff --git a/src/AzureDevopsService/AzureDevopsService.Application/ExtentionRegistrationService.cs b/src/AzureDevopsService/AzureDevopsService.Application/ExtentionRegistrationService.cs index 9f1b5a4..ce86191 100644 --- a/src/AzureDevopsService/AzureDevopsService.Application/ExtentionRegistrationService.cs +++ b/src/AzureDevopsService/AzureDevopsService.Application/ExtentionRegistrationService.cs @@ -1,7 +1,4 @@ -using AzureDevopsService.Application.AzureDevopsExternalResourceService.OrganizationProjectService; -using TunNetCom.AionTime.AzureDevopsService.Application.AzureDevopsExternalResourceService.OrganizationProjectService; - -namespace TunNetCom.AionTime.AzureDevopsService.Application; +namespace AzureDevopsService.Application; public static class ExtentionRegistrationService { diff --git a/src/AzureDevopsService/AzureDevopsService.Application/GlobalUsings.cs b/src/AzureDevopsService/AzureDevopsService.Application/GlobalUsings.cs index 68eba47..127ea5b 100644 --- a/src/AzureDevopsService/AzureDevopsService.Application/GlobalUsings.cs +++ b/src/AzureDevopsService/AzureDevopsService.Application/GlobalUsings.cs @@ -1,4 +1,13 @@ -global using Microsoft.AspNetCore.Mvc; +global using AzureDevopsService.Application; +global using AzureDevopsService.Application.AzureDevopsExternalResourceService.OrganizationProjectService; +global using AzureDevopsService.Application.AzureDevopsExternalResourceService.ProfileUserService; +global using AzureDevopsService.Application.AzureDevopsExternalResourceService.ServiceHelper; +global using AzureDevopsService.Application.AzureDevopsExternalResourceService.ServiceHelper.WorkItem; +global using AzureDevopsService.Application.AzureDevopsExternalResourceService.WorkItem; +global using AzureDevopsService.Contracts.AzureRequestResourceModel; +global using AzureDevopsService.Contracts.AzureResponceModel; +global using AzureDevopsService.Contracts.Constant; +global using Microsoft.AspNetCore.Mvc; global using Microsoft.Extensions.DependencyInjection; global using Microsoft.Extensions.Logging; global using Microsoft.TeamFoundation.Core.WebApi; @@ -17,17 +26,4 @@ global using System.Net.Http.Headers; global using System.Net.Http.Json; global using System.Text; -global using System.Threading.Tasks; -global using TunNetCom; -global using TunNetCom.AionTime; -global using TunNetCom.AionTime.AzureDevopsService; -global using TunNetCom.AionTime.AzureDevopsService.Application; -global using TunNetCom.AionTime.AzureDevopsService.Application.AzureDevopsExternalResourceService; -global using TunNetCom.AionTime.AzureDevopsService.Application.AzureDevopsExternalResourceService.OrganizationProjectService; -global using TunNetCom.AionTime.AzureDevopsService.Application.AzureDevopsExternalResourceService.ProfileUserService; -global using TunNetCom.AionTime.AzureDevopsService.Application.AzureDevopsExternalResourceService.ServiceHelper; -global using TunNetCom.AionTime.AzureDevopsService.Application.AzureDevopsExternalResourceService.ServiceHelper.WorkItem; -global using TunNetCom.AionTime.AzureDevopsService.Application.AzureDevopsExternalResourceService.WorkItem; -global using TunNetCom.AionTime.AzureDevopsService.Contracts.AzureRequestResourceModel; -global using TunNetCom.AionTime.AzureDevopsService.Contracts.AzureResponceModel; -global using TunNetCom.AionTime.AzureDevopsService.Contracts.Constant; \ No newline at end of file +global using System.Threading.Tasks; \ No newline at end of file diff --git a/src/AzureDevopsService/AzureDevopsService.Contracts/AzureRequestResourceModel/AllProjectUnderOrganizationRequest.cs b/src/AzureDevopsService/AzureDevopsService.Contracts/AzureRequestResourceModel/AllProjectUnderOrganizationRequest.cs index 1342827..74fa05d 100644 --- a/src/AzureDevopsService/AzureDevopsService.Contracts/AzureRequestResourceModel/AllProjectUnderOrganizationRequest.cs +++ b/src/AzureDevopsService/AzureDevopsService.Contracts/AzureRequestResourceModel/AllProjectUnderOrganizationRequest.cs @@ -1,11 +1,4 @@ -using AzureDevopsService.Contracts.AzureRequestResourceModel; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace TunNetCom.AionTime.AzureDevopsService.Contracts.AzureRequestResourceModel +namespace AzureDevopsService.Contracts.AzureRequestResourceModel { public class AllProjectUnderOrganizationRequest : BaseRequest { diff --git a/src/AzureDevopsService/AzureDevopsService.Contracts/AzureRequestResourceModel/BaseRequest.cs b/src/AzureDevopsService/AzureDevopsService.Contracts/AzureRequestResourceModel/BaseRequest.cs index bf50444..e8f4bcd 100644 --- a/src/AzureDevopsService/AzureDevopsService.Contracts/AzureRequestResourceModel/BaseRequest.cs +++ b/src/AzureDevopsService/AzureDevopsService.Contracts/AzureRequestResourceModel/BaseRequest.cs @@ -1,11 +1,4 @@ -using AzureDevopsService.Contracts.AzureRequestResourceModel; -using TunNetCom; -using TunNetCom.AionTime; -using TunNetCom.AionTime.AzureDevopsService; -using TunNetCom.AionTime.AzureDevopsService.Contracts; -using TunNetCom.AionTime.AzureDevopsService.Contracts.AzureRequestResourceModel; - -namespace AzureDevopsService.Contracts.AzureRequestResourceModel; +namespace AzureDevopsService.Contracts.AzureRequestResourceModel; public class BaseRequest { diff --git a/src/AzureDevopsService/AzureDevopsService.Contracts/AzureRequestResourceModel/GetUserOrganizationRequest.cs b/src/AzureDevopsService/AzureDevopsService.Contracts/AzureRequestResourceModel/GetUserOrganizationRequest.cs index 52d10f1..cb08f18 100644 --- a/src/AzureDevopsService/AzureDevopsService.Contracts/AzureRequestResourceModel/GetUserOrganizationRequest.cs +++ b/src/AzureDevopsService/AzureDevopsService.Contracts/AzureRequestResourceModel/GetUserOrganizationRequest.cs @@ -1,9 +1,6 @@ -using AzureDevopsService.Contracts.AzureRequestResourceModel; +namespace AzureDevopsService.Contracts.AzureRequestResourceModel; -namespace AzureDevopsService.Contracts.AzureRequestResourceModel +public class GetUserOrganizationRequest : BaseRequest { - public class GetUserOrganizationRequest : BaseRequest - { - public required string MemberId { get; set; } - } + public required string MemberId { get; set; } } \ No newline at end of file diff --git a/src/AzureDevopsService/AzureDevopsService.Contracts/AzureRequestResourceModel/WiqlRequest.cs b/src/AzureDevopsService/AzureDevopsService.Contracts/AzureRequestResourceModel/WiqlRequest.cs index fd35545..abf9328 100644 --- a/src/AzureDevopsService/AzureDevopsService.Contracts/AzureRequestResourceModel/WiqlRequest.cs +++ b/src/AzureDevopsService/AzureDevopsService.Contracts/AzureRequestResourceModel/WiqlRequest.cs @@ -1,9 +1,4 @@ using AzureDevopsService.Contracts.AzureRequestResourceModel; -using TunNetCom; -using TunNetCom.AionTime; -using TunNetCom.AionTime.AzureDevopsService; -using TunNetCom.AionTime.AzureDevopsService.Contracts; -using TunNetCom.AionTime.AzureDevopsService.Contracts.AzureRequestResourceModel; namespace AzureDevopsService.Contracts.AzureRequestResourceModel { diff --git a/src/AzureDevopsService/AzureDevopsService.Contracts/AzureRequestResourceModel/WorkItemRequest.cs b/src/AzureDevopsService/AzureDevopsService.Contracts/AzureRequestResourceModel/WorkItemRequest.cs index 329a369..d0ab0fe 100644 --- a/src/AzureDevopsService/AzureDevopsService.Contracts/AzureRequestResourceModel/WorkItemRequest.cs +++ b/src/AzureDevopsService/AzureDevopsService.Contracts/AzureRequestResourceModel/WorkItemRequest.cs @@ -1,7 +1,4 @@ -using AzureDevopsService.Contracts.AzureRequestResourceModel; -using TunNetCom.AionTime.AzureDevopsService.Contracts.AzureResponceModel; - -namespace TunNetCom.AionTime.AzureDevopsService.Contracts.AzureRequestResourceModel +namespace AzureDevopsService.Contracts.AzureRequestResourceModel { public class WorkItemRequest : BaseRequest { diff --git a/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/AllProjectResponce.cs b/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/AllProjectResponce.cs index eef796a..2d96187 100644 --- a/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/AllProjectResponce.cs +++ b/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/AllProjectResponce.cs @@ -1,12 +1,4 @@ -using AzureDevopsService.Contracts.AzureRequestResourceModel; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TunNetCom.AionTime.AzureDevopsService.Contracts.AzureRequestResourceModel; - -namespace TunNetCom.AionTime.AzureDevopsService.Contracts.AzureResponceModel +namespace AzureDevopsService.Contracts.AzureResponceModel { public class AllProjectResponce : BaseRequest { diff --git a/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/Column.cs b/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/Column.cs index 8ffd433..5334b3d 100644 --- a/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/Column.cs +++ b/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/Column.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevopsService.Contracts.AzureResponceModel; +namespace AzureDevopsService.Contracts.AzureResponceModel; public class Column { diff --git a/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/CustomProblemDetailsResponce.cs b/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/CustomProblemDetailsResponce.cs index 652c785..c7c6115 100644 --- a/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/CustomProblemDetailsResponce.cs +++ b/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/CustomProblemDetailsResponce.cs @@ -1,12 +1,4 @@ -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TunNetCom.AionTime.AzureDevopsService.Contracts.AzureRequestResourceModel; - -namespace TunNetCom.AionTime.AzureDevopsService.Contracts.AzureResponceModel +namespace AzureDevopsService.Contracts.AzureResponceModel { public class CustomProblemDetailsResponce : ProblemDetails { diff --git a/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/Project.cs b/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/Project.cs index 0e46def..f67b99c 100644 --- a/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/Project.cs +++ b/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/Project.cs @@ -1,10 +1,4 @@ -using TunNetCom; -using TunNetCom.AionTime; -using TunNetCom.AionTime.AzureDevopsService; -using TunNetCom.AionTime.AzureDevopsService.Contracts; -using TunNetCom.AionTime.AzureDevopsService.Contracts.AzureResponceModel; - -namespace TunNetCom.AionTime.AzureDevopsService.Contracts.AzureResponceModel +namespace AzureDevopsService.Contracts.AzureResponceModel { public class Project { diff --git a/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/UserAccount.cs b/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/UserAccount.cs index bd05798..ad7fe34 100644 --- a/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/UserAccount.cs +++ b/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/UserAccount.cs @@ -1,18 +1,4 @@ -using AzureDevopsService.Contracts.AzureRequestResourceModel; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TunNetCom; -using TunNetCom.AionTime; -using TunNetCom.AionTime.AzureDevopsService; -using TunNetCom.AionTime.AzureDevopsService.Contracts; -using TunNetCom.AionTime.AzureDevopsService.Contracts.AzureRequestResourceModel; -using TunNetCom.AionTime.AzureDevopsService.Contracts.AzureResponceModel; - -namespace TunNetCom.AionTime.AzureDevopsService.Contracts.AzureResponceModel +namespace AzureDevopsService.Contracts.AzureResponceModel { public class UserAccount : BaseRequest { diff --git a/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/UserOrganization.cs b/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/UserOrganization.cs index 800d24d..b5e43b6 100644 --- a/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/UserOrganization.cs +++ b/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/UserOrganization.cs @@ -1,10 +1,4 @@ -using TunNetCom; -using TunNetCom.AionTime; -using TunNetCom.AionTime.AzureDevopsService; -using TunNetCom.AionTime.AzureDevopsService.Contracts; -using TunNetCom.AionTime.AzureDevopsService.Contracts.AzureResponceModel; - -namespace TunNetCom.AionTime.AzureDevopsService.Contracts.AzureResponceModel; +namespace AzureDevopsService.Contracts.AzureResponceModel; public class UserOrganization { diff --git a/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/UserProfile.cs b/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/UserProfile.cs index 154574f..e2278cd 100644 --- a/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/UserProfile.cs +++ b/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/UserProfile.cs @@ -1,12 +1,4 @@ -using AzureDevopsService.Contracts.AzureRequestResourceModel; -using TunNetCom; -using TunNetCom.AionTime; -using TunNetCom.AionTime.AzureDevopsService; -using TunNetCom.AionTime.AzureDevopsService.Contracts; -using TunNetCom.AionTime.AzureDevopsService.Contracts.AzureRequestResourceModel; -using TunNetCom.AionTime.AzureDevopsService.Contracts.AzureResponceModel; - -namespace TunNetCom.AionTime.AzureDevopsService.Contracts.AzureResponceModel; +namespace AzureDevopsService.Contracts.AzureResponceModel; public class UserProfile : BaseRequest { diff --git a/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/WiqlBadRequestResponce.cs b/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/WiqlBadRequestResponce.cs index f386999..77e8ec9 100644 --- a/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/WiqlBadRequestResponce.cs +++ b/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/WiqlBadRequestResponce.cs @@ -1,40 +1,25 @@ -using AzureDevopsService.Contracts.AzureRequestResourceModel; -using AzureDevopsService.Contracts.AzureResponceModel; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Text.Json.Serialization; -using System.Threading.Tasks; -using TunNetCom; -using TunNetCom.AionTime; -using TunNetCom.AionTime.AzureDevopsService; -using TunNetCom.AionTime.AzureDevopsService.Contracts; -using TunNetCom.AionTime.AzureDevopsService.Contracts.AzureRequestResourceModel; -using TunNetCom.AionTime.AzureDevopsService.Contracts.AzureResponceModel; - -namespace AzureDevopsService.Contracts.AzureResponceModel; +namespace AzureDevopsService.Contracts.AzureResponceModel; public class WiqlBadRequestResponce : BaseRequest { - [JsonPropertyName("$id")] + [JsonProperty("$id")] public string? Id { get; set; } = string.Empty; - [JsonPropertyName("innerException")] + [JsonProperty("innerException")] public string? InnerException { get; set; } = string.Empty; - [JsonPropertyName("message")] + [JsonProperty("message")] public string? Message { get; set; } = string.Empty; - [JsonPropertyName("typeName")] + [JsonProperty("typeName")] public string? TypeName { get; set; } = string.Empty; - [JsonPropertyName("typeKey")] + [JsonProperty("typeKey")] public string? TypeKey { get; set; } = string.Empty; - [JsonPropertyName("errorCode")] + [JsonProperty("errorCode")] public int? ErrorCode { get; set; } - [JsonPropertyName("eventId")] + [JsonProperty("eventId")] public int? EventId { get; set; } } \ No newline at end of file diff --git a/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/WiqlResponses.cs b/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/WiqlResponses.cs index 9104aea..79c7ef8 100644 --- a/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/WiqlResponses.cs +++ b/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/WiqlResponses.cs @@ -1,13 +1,4 @@ -using AzureDevopsService.Contracts.AzureRequestResourceModel; -using System; -using System.Collections.Generic; -using System.Data.Common; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TunNetCom.AionTime.AzureDevopsService.Contracts.AzureRequestResourceModel; - -namespace TunNetCom.AionTime.AzureDevopsService.Contracts.AzureResponceModel; +namespace AzureDevopsService.Contracts.AzureResponceModel; public class WiqlResponses : BaseRequest { diff --git a/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/WorkItem.cs b/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/WorkItem.cs index 4561bba..cddc99e 100644 --- a/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/WorkItem.cs +++ b/src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/WorkItem.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevopsService.Contracts.AzureResponceModel; +namespace AzureDevopsService.Contracts.AzureResponceModel; public class WorkItem { diff --git a/src/AzureDevopsService/AzureDevopsService.Contracts/Constant/AzureResponseMessage.cs b/src/AzureDevopsService/AzureDevopsService.Contracts/Constant/AzureResponseMessage.cs index ef0b441..56499ee 100644 --- a/src/AzureDevopsService/AzureDevopsService.Contracts/Constant/AzureResponseMessage.cs +++ b/src/AzureDevopsService/AzureDevopsService.Contracts/Constant/AzureResponseMessage.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevopsService.Contracts.Constant; +namespace AzureDevopsService.Contracts.Constant; public static class AzureResponseMessage { diff --git a/src/AzureDevopsService/AzureDevopsService.Contracts/GlobalUsings.cs b/src/AzureDevopsService/AzureDevopsService.Contracts/GlobalUsings.cs index 6883bd2..5693b31 100644 --- a/src/AzureDevopsService/AzureDevopsService.Contracts/GlobalUsings.cs +++ b/src/AzureDevopsService/AzureDevopsService.Contracts/GlobalUsings.cs @@ -1,7 +1,8 @@ -global using Newtonsoft.Json; +global using AzureDevopsService.Contracts.AzureRequestResourceModel; +global using Microsoft.AspNetCore.Mvc; +global using Newtonsoft.Json; global using System; global using System.Collections.Generic; global using System.Linq; global using System.Text; -global using System.Threading.Tasks; -global using TunNetCom.AionTime.AzureDevopsService.Contracts.AzureRequestResourceModel; \ No newline at end of file +global using System.Threading.Tasks; \ No newline at end of file diff --git a/src/AzureDevopsWebhookService/WebhookService.API/Controlleurs/AzureDevopsServiceHookController.cs b/src/AzureDevopsWebhookService/WebhookService.API/Controlleurs/AzureDevopsServiceHookController.cs index a3f78c5..8bc96c3 100644 --- a/src/AzureDevopsWebhookService/WebhookService.API/Controlleurs/AzureDevopsServiceHookController.cs +++ b/src/AzureDevopsWebhookService/WebhookService.API/Controlleurs/AzureDevopsServiceHookController.cs @@ -1,7 +1,4 @@ -using TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels; -using TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.ResourcesModels; - -namespace TunNetCom.AionTime.AzureDevops.WebhookService.API.Controlleurs; +namespace WebhookService.API.Controlleurs; [Route("api/[controller]")] [ApiController] diff --git a/src/AzureDevopsWebhookService/WebhookService.API/DocumentationFile.xml b/src/AzureDevopsWebhookService/WebhookService.API/DocumentationFile.xml index 03afaff..78ce61f 100644 --- a/src/AzureDevopsWebhookService/WebhookService.API/DocumentationFile.xml +++ b/src/AzureDevopsWebhookService/WebhookService.API/DocumentationFile.xml @@ -4,7 +4,7 @@ WebhookService.API - + Work item commented on Work item updated @@ -15,7 +15,7 @@ Not tested - + Code checked in Code pushed @@ -26,7 +26,7 @@ Not tested - + Job state changed Run state changed @@ -38,7 +38,7 @@ Not tested - + Build completed Release created diff --git a/src/AzureDevopsWebhookService/WebhookService.API/ExtensionServiceRegistration.cs b/src/AzureDevopsWebhookService/WebhookService.API/ExtensionServiceRegistration.cs index f1e2b1c..ccc0bfb 100644 --- a/src/AzureDevopsWebhookService/WebhookService.API/ExtensionServiceRegistration.cs +++ b/src/AzureDevopsWebhookService/WebhookService.API/ExtensionServiceRegistration.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevops.WebhookService.API; +namespace WebhookService.API; public static class ExtensionServiceRegistration { diff --git a/src/AzureDevopsWebhookService/WebhookService.API/GlobalUsings.cs b/src/AzureDevopsWebhookService/WebhookService.API/GlobalUsings.cs index 6e30bb7..f91eb36 100644 --- a/src/AzureDevopsWebhookService/WebhookService.API/GlobalUsings.cs +++ b/src/AzureDevopsWebhookService/WebhookService.API/GlobalUsings.cs @@ -3,6 +3,8 @@ global using Microsoft.AspNetCore.Diagnostics; global using Microsoft.AspNetCore.Http; global using Microsoft.AspNetCore.Mvc; +global using Microsoft.Extensions.Configuration; +global using Microsoft.Extensions.DependencyInjection; global using Newtonsoft.Json; global using OpenTelemetry.Instrumentation.AspNetCore; global using OpenTelemetry.Logs; @@ -14,4 +16,11 @@ global using Serilog.Sinks.Grafana.Loki; global using System.Net; global using System.Runtime.InteropServices; -global using System.Threading.Channels; \ No newline at end of file +global using System.Threading.Channels; +global using WebhookService.API; +global using WebhookService.API.Controlleurs; +global using WebhookService.API.Middelware; +global using WebhookService.Application; +global using WebhookService.Contracts.EventModels.SharedModels; +global using WebhookService.Contracts.EventModels.SharedModels.ResourcesModels; +global using WebhookService.Contracts.Settings; \ No newline at end of file diff --git a/src/AzureDevopsWebhookService/WebhookService.API/Middelware/GlobalExceptionHandler.cs b/src/AzureDevopsWebhookService/WebhookService.API/Middelware/GlobalExceptionHandler.cs index f427163..f49bb77 100644 --- a/src/AzureDevopsWebhookService/WebhookService.API/Middelware/GlobalExceptionHandler.cs +++ b/src/AzureDevopsWebhookService/WebhookService.API/Middelware/GlobalExceptionHandler.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevops.WebhookService.API.Middelware; +namespace WebhookService.API.Middelware; internal sealed class GlobalExceptionHandler(ILogger logger) : IExceptionHandler diff --git a/src/AzureDevopsWebhookService/WebhookService.API/Program.cs b/src/AzureDevopsWebhookService/WebhookService.API/Program.cs index 492cb24..fa8cea6 100644 --- a/src/AzureDevopsWebhookService/WebhookService.API/Program.cs +++ b/src/AzureDevopsWebhookService/WebhookService.API/Program.cs @@ -1,10 +1,3 @@ -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using TunNetCom.AionTime.AzureDevops.WebhookService.API; -using TunNetCom.AionTime.AzureDevops.WebhookService.API.Middelware; -using TunNetCom.AionTime.AzureDevops.WebhookService.Application; -using TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.Settings; - WebApplicationBuilder builder = WebApplication.CreateBuilder(args); Log.Logger = new LoggerConfiguration() .MinimumLevel.Override("Microsoft", LogEventLevel.Information) diff --git a/src/AzureDevopsWebhookService/WebhookService.Application/AzureWebhookServiceRegistration.cs b/src/AzureDevopsWebhookService/WebhookService.Application/AzureWebhookServiceRegistration.cs index 2e8c9cb..3042b0d 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Application/AzureWebhookServiceRegistration.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Application/AzureWebhookServiceRegistration.cs @@ -1,6 +1,4 @@ -using TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.Settings; - -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Application; +namespace WebhookService.Application; public static class AzureWebhookServiceRegistration { diff --git a/src/AzureDevopsWebhookService/WebhookService.Application/Featurs/Producer/SendAzureBuildAndReleaseEventsCommandHandler.cs b/src/AzureDevopsWebhookService/WebhookService.Application/Featurs/Producer/SendAzureBuildAndReleaseEventsCommandHandler.cs index dee234d..5421625 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Application/Featurs/Producer/SendAzureBuildAndReleaseEventsCommandHandler.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Application/Featurs/Producer/SendAzureBuildAndReleaseEventsCommandHandler.cs @@ -1,7 +1,4 @@ -using TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels; -using TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.ResourcesModels; - -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Application.Featurs.Producer; +namespace WebhookService.Application.Featurs.Producer; public class SendAzureBuildAndReleaseEventsCommandHandler(ISendEndpointProvider sendEndpointProvider) : IRequestHandler> diff --git a/src/AzureDevopsWebhookService/WebhookService.Application/Featurs/Producer/SendAzureCodeEventsCommandHandler.cs b/src/AzureDevopsWebhookService/WebhookService.Application/Featurs/Producer/SendAzureCodeEventsCommandHandler.cs index 0dd222e..c1ba46b 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Application/Featurs/Producer/SendAzureCodeEventsCommandHandler.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Application/Featurs/Producer/SendAzureCodeEventsCommandHandler.cs @@ -1,7 +1,4 @@ -using TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels; -using TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.ResourcesModels; - -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Application.Featurs.Producer; +namespace WebhookService.Application.Featurs.Producer; public class SendAzureCodeEventsCommandHandler(ISendEndpointProvider sendEndpointProvider) : IRequestHandler> diff --git a/src/AzureDevopsWebhookService/WebhookService.Application/Featurs/Producer/SendAzurePipelineEventCommandHandler.cs b/src/AzureDevopsWebhookService/WebhookService.Application/Featurs/Producer/SendAzurePipelineEventCommandHandler.cs index 30fe77b..5b15223 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Application/Featurs/Producer/SendAzurePipelineEventCommandHandler.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Application/Featurs/Producer/SendAzurePipelineEventCommandHandler.cs @@ -1,7 +1,4 @@ -using TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels; -using TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.ResourcesModels; - -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Application.Featurs.Producer; +namespace WebhookService.Application.Featurs.Producer; public class SendAzurePipelineEventCommandHandler(ISendEndpointProvider sendEndpointProvider) : IRequestHandler> diff --git a/src/AzureDevopsWebhookService/WebhookService.Application/Featurs/Producer/SendWorkItemEventCommandHandler.cs b/src/AzureDevopsWebhookService/WebhookService.Application/Featurs/Producer/SendWorkItemEventCommandHandler.cs index 32155c9..1192eff 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Application/Featurs/Producer/SendWorkItemEventCommandHandler.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Application/Featurs/Producer/SendWorkItemEventCommandHandler.cs @@ -1,7 +1,4 @@ -using TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels; -using TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.ResourcesModels; - -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Application.Featurs.Producer; +namespace WebhookService.Application.Featurs.Producer; public class SendWorkItemEventCommandHandler(ISendEndpointProvider sendEndpointProvider) : IRequestHandler> diff --git a/src/AzureDevopsWebhookService/WebhookService.Application/Featurs/Publisher/SendAzureBuildAndReleaseEventsCommandHandler.cs b/src/AzureDevopsWebhookService/WebhookService.Application/Featurs/Publisher/SendAzureBuildAndReleaseEventsCommandHandler.cs index 48bfbc0..100afbd 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Application/Featurs/Publisher/SendAzureBuildAndReleaseEventsCommandHandler.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Application/Featurs/Publisher/SendAzureBuildAndReleaseEventsCommandHandler.cs @@ -1,7 +1,4 @@ -using TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels; -using TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.ResourcesModels; - -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Application.Featurs.Publisher; +namespace WebhookService.Application.Featurs.Publisher; public class SendAzureBuildAndReleaseEventsCommandHandler(ISendEndpointProvider sendEndpointProvider) : IRequestHandler> diff --git a/src/AzureDevopsWebhookService/WebhookService.Application/Featurs/Publisher/SendAzureCodeEventsCommandHandler.cs b/src/AzureDevopsWebhookService/WebhookService.Application/Featurs/Publisher/SendAzureCodeEventsCommandHandler.cs index 4549535..9737908 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Application/Featurs/Publisher/SendAzureCodeEventsCommandHandler.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Application/Featurs/Publisher/SendAzureCodeEventsCommandHandler.cs @@ -1,7 +1,4 @@ -using TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels; -using TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.ResourcesModels; - -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Application.Featurs.Publisher; +namespace WebhookService.Application.Featurs.Publisher; public class SendAzureCodeEventsCommandHandler(ISendEndpointProvider sendEndpointProvider) : IRequestHandler> diff --git a/src/AzureDevopsWebhookService/WebhookService.Application/Featurs/Publisher/SendAzurePipelineEventCommandHandler.cs b/src/AzureDevopsWebhookService/WebhookService.Application/Featurs/Publisher/SendAzurePipelineEventCommandHandler.cs index eda48f2..6f43d17 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Application/Featurs/Publisher/SendAzurePipelineEventCommandHandler.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Application/Featurs/Publisher/SendAzurePipelineEventCommandHandler.cs @@ -1,7 +1,4 @@ -using TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels; -using TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.ResourcesModels; - -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Application.Featurs.Publisher; +namespace WebhookService.Application.Featurs.Publisher; public class SendAzurePipelineEventCommandHandler(ISendEndpointProvider sendEndpointProvider) : IRequestHandler> diff --git a/src/AzureDevopsWebhookService/WebhookService.Application/Featurs/Publisher/SendWorkItemEventCommandHandler.cs b/src/AzureDevopsWebhookService/WebhookService.Application/Featurs/Publisher/SendWorkItemEventCommandHandler.cs index 6602b94..e90aadb 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Application/Featurs/Publisher/SendWorkItemEventCommandHandler.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Application/Featurs/Publisher/SendWorkItemEventCommandHandler.cs @@ -1,7 +1,4 @@ -using TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels; -using TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.ResourcesModels; - -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Application.Featurs.Publisher; +namespace WebhookService.Application.Featurs.Publisher; public class SendWorkItemEventCommandHandler(ISendEndpointProvider sendEndpointProvider) : IRequestHandler> diff --git a/src/AzureDevopsWebhookService/WebhookService.Application/GlobalUsings.cs b/src/AzureDevopsWebhookService/WebhookService.Application/GlobalUsings.cs index 38d043c..70eadb3 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Application/GlobalUsings.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Application/GlobalUsings.cs @@ -11,5 +11,9 @@ global using System.Reflection; global using System.Text; global using System.Threading.Tasks; -global using TunNetCom.AionTime.AzureDevops.WebhookService.Application; +global using WebhookService.Application; +global using WebhookService.Application.Featurs.Producer; +global using WebhookService.Contracts.EventModels.SharedModels; +global using WebhookService.Contracts.EventModels.SharedModels.ResourcesModels; +global using WebhookService.Contracts.Settings; global using static MassTransit.Logging.DiagnosticHeaders.Messaging; \ No newline at end of file diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/Constant/AzureWebhookEventTypes.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/Constant/AzureWebhookEventTypes.cs index c79e77a..ce6fac1 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/Constant/AzureWebhookEventTypes.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/Constant/AzureWebhookEventTypes.cs @@ -1,6 +1,4 @@ -using TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.Constant; - -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.Constant; +namespace WebhookService.Contracts.Constant; public static class AzureWebhookEventTypes { diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/AzureWebhookModelEvent.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/AzureWebhookModelEvent.cs index bc31929..6ca3395 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/AzureWebhookModelEvent.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/AzureWebhookModelEvent.cs @@ -1,4 +1,7 @@ -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels; +using WebhookService.Contracts.EventModels.SharedModels; +using WebhookService.Contracts.EventModels.SharedModels.EventModels; + +namespace WebhookService.Contracts.EventModels.SharedModels; public record AzureWebhookModelEvent( [property: JsonProperty(PropertyName = "id", NullValueHandling = NullValueHandling.Ignore)] diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Account.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Account.cs index f321c80..312d912 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Account.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Account.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.EventModels; +namespace WebhookService.Contracts.EventModels.SharedModels.EventModels; public record class Account( [property: JsonProperty(PropertyName = "resource", NullValueHandling = NullValueHandling.Ignore)] diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Author.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Author.cs index 17dbac2..16b8649 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Author.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Author.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.EventModels; +namespace WebhookService.Contracts.EventModels.SharedModels.EventModels; public record class Author([property: JsonProperty(PropertyName = "name", NullValueHandling = NullValueHandling.Ignore)] string? Name, [property: JsonProperty(PropertyName = "email", NullValueHandling = NullValueHandling.Ignore)] diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/AzurePipeline.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/AzurePipeline.cs index c6b84bd..6aa1121 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/AzurePipeline.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/AzurePipeline.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.EventModels; +namespace WebhookService.Contracts.EventModels.SharedModels.EventModels; public record AzurePipeline( [property: JsonProperty(PropertyName = "url", NullValueHandling = NullValueHandling.Ignore)] diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/BaseCommit.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/BaseCommit.cs index 5da237a..1f5967f 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/BaseCommit.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/BaseCommit.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.EventModels; +namespace WebhookService.Contracts.EventModels.SharedModels.EventModels; public record BaseCommit( [property: JsonProperty(PropertyName = "commitId", NullValueHandling = NullValueHandling.Ignore)] diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Change.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Change.cs index 2abbf9a..f2efd1d 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Change.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Change.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.EventModels; +namespace WebhookService.Contracts.EventModels.SharedModels.EventModels; public record Change( [property: JsonProperty(PropertyName = "author", NullValueHandling = NullValueHandling.Ignore)] diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Collection.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Collection.cs index ea79afd..f0a3273 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Collection.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Collection.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.EventModels; +namespace WebhookService.Contracts.EventModels.SharedModels.EventModels; #pragma warning disable CA1711 // Identifiers should not have incorrect suffix public record Collection( diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Commit.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Commit.cs index 3d05b94..40a3d3c 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Commit.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Commit.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.EventModels; +namespace WebhookService.Contracts.EventModels.SharedModels.EventModels; public record Commit( [property: JsonProperty(PropertyName = "commitId", NullValueHandling = NullValueHandling.Ignore)] diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Committer.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Committer.cs index 0b52ed2..b3e1592 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Committer.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Committer.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.EventModels; +namespace WebhookService.Contracts.EventModels.SharedModels.EventModels; public record Committer( [property: JsonProperty(PropertyName = "name", NullValueHandling = NullValueHandling.Ignore)] diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/CreatedBy.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/CreatedBy.cs index 9112078..3bddce4 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/CreatedBy.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/CreatedBy.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.EventModels; +namespace WebhookService.Contracts.EventModels.SharedModels.EventModels; public record CreatedBy( [property: JsonProperty(PropertyName = "id", NullValueHandling = NullValueHandling.Ignore)] diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Definition.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Definition.cs index 21a088c..0824d23 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Definition.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Definition.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.EventModels; +namespace WebhookService.Contracts.EventModels.SharedModels.EventModels; public record Definition( [property: JsonProperty(PropertyName = "drafts", NullValueHandling = NullValueHandling.Ignore)] diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Fileds.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Fileds.cs index 2321e6e..0f84254 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Fileds.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Fileds.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.EventModels; +namespace WebhookService.Contracts.EventModels.SharedModels.EventModels; public record Fileds( [property: JsonProperty(PropertyName = "System.AreaPath", NullValueHandling = NullValueHandling.Ignore)] diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Job.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Job.cs index e4283f3..881ef86 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Job.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Job.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.EventModels; +namespace WebhookService.Contracts.EventModels.SharedModels.EventModels; public record class Job( [property: JsonProperty(PropertyName = "_links", NullValueHandling = NullValueHandling.Ignore)] diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/JobLink.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/JobLink.cs index e8931e9..370e311 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/JobLink.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/JobLink.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.EventModels; +namespace WebhookService.Contracts.EventModels.SharedModels.EventModels; public record class JobLink( [property: JsonProperty(PropertyName = "System.AreaPath", NullValueHandling = NullValueHandling.Ignore)] diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/LastChangedBy.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/LastChangedBy.cs index 536bd75..c472bd7 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/LastChangedBy.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/LastChangedBy.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.EventModels; +namespace WebhookService.Contracts.EventModels.SharedModels.EventModels; public record LastChangedBy( [property: JsonProperty(PropertyName = "displayName", NullValueHandling = NullValueHandling.Ignore)] diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Link.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Link.cs index 829b1f7..16b0bf4 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Link.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Link.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.EventModels; +namespace WebhookService.Contracts.EventModels.SharedModels.EventModels; public record Link( [property: JsonProperty(PropertyName = "self", NullValueHandling = NullValueHandling.Ignore)] diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Links.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Links.cs index 33f8843..6cbb25a 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Links.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Links.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.EventModels; +namespace WebhookService.Contracts.EventModels.SharedModels.EventModels; public record Links( [property: JsonProperty(PropertyName = "avatar", NullValueHandling = NullValueHandling.Ignore)] diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Logs.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Logs.cs index 75ebf21..7e76e43 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Logs.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Logs.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.EventModels; +namespace WebhookService.Contracts.EventModels.SharedModels.EventModels; public record Logs( [property: JsonProperty(PropertyName = "id", NullValueHandling = NullValueHandling.Ignore)] diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Message.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Message.cs index 45f5c3d..e66e410 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Message.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Message.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.EventModels; +namespace WebhookService.Contracts.EventModels.SharedModels.EventModels; public record Message( [property: JsonProperty(PropertyName = "text", NullValueHandling = NullValueHandling.Ignore)] diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Project.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Project.cs index a5836cd..81708b4 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Project.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Project.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.EventModels; +namespace WebhookService.Contracts.EventModels.SharedModels.EventModels; public record Project( [property: JsonProperty(PropertyName = "id", NullValueHandling = NullValueHandling.Ignore)] diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/PushedBy.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/PushedBy.cs index c48abb3..f49e662 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/PushedBy.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/PushedBy.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.EventModels; +namespace WebhookService.Contracts.EventModels.SharedModels.EventModels; public record PushedBy( [property: JsonProperty(PropertyName = "id", NullValueHandling = NullValueHandling.Ignore)] diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/RefUpdate.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/RefUpdate.cs index 581ac15..73cf3f6 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/RefUpdate.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/RefUpdate.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.EventModels; +namespace WebhookService.Contracts.EventModels.SharedModels.EventModels; public record RefUpdate( [property: JsonProperty(PropertyName = "name", NullValueHandling = NullValueHandling.Ignore)] diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Repository.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Repository.cs index f1995db..6f257e0 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Repository.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Repository.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.EventModels; +namespace WebhookService.Contracts.EventModels.SharedModels.EventModels; public record Repository( [property: JsonProperty(PropertyName = "id", NullValueHandling = NullValueHandling.Ignore)] diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/RepositoryChange.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/RepositoryChange.cs index 52e6029..f1f5f74 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/RepositoryChange.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/RepositoryChange.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.EventModels; +namespace WebhookService.Contracts.EventModels.SharedModels.EventModels; public record RepositoryChange( [property: JsonProperty(PropertyName = "type", NullValueHandling = NullValueHandling.Ignore)] diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/RequestedBy.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/RequestedBy.cs index 2d39ee4..3be05d7 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/RequestedBy.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/RequestedBy.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.EventModels; +namespace WebhookService.Contracts.EventModels.SharedModels.EventModels; public record RequestedBy( [property: JsonProperty(PropertyName = "displayName", NullValueHandling = NullValueHandling.Ignore)] diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/RequestedFor.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/RequestedFor.cs index 51518d9..4140171 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/RequestedFor.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/RequestedFor.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.EventModels; +namespace WebhookService.Contracts.EventModels.SharedModels.EventModels; public record RequestedFor( [property: JsonProperty(PropertyName = "displayName", NullValueHandling = NullValueHandling.Ignore)] diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Resource.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Resource.cs index 878a155..8de936f 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Resource.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Resource.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.EventModels; +namespace WebhookService.Contracts.EventModels.SharedModels.EventModels; public record Resource( [property: JsonProperty(PropertyName = "repository", NullValueHandling = NullValueHandling.Ignore)] diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/ResourceContainers.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/ResourceContainers.cs index b92ad36..d8eb68e 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/ResourceContainers.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/ResourceContainers.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.EventModels; +namespace WebhookService.Contracts.EventModels.SharedModels.EventModels; public record ResourceContainers( [property: JsonProperty(PropertyName = "collection", NullValueHandling = NullValueHandling.Ignore)] diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Reviewer.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Reviewer.cs index 0a84186..bfbd0a9 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Reviewer.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Reviewer.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.EventModels; +namespace WebhookService.Contracts.EventModels.SharedModels.EventModels; public record Reviewer( [property: JsonProperty(PropertyName = "reviewerUrl", NullValueHandling = NullValueHandling.Ignore)] diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Run.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Run.cs index 7015ec9..5cc2db5 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Run.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Run.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.EventModels; +namespace WebhookService.Contracts.EventModels.SharedModels.EventModels; public record class Run( [property: JsonProperty(PropertyName = "pipeline", NullValueHandling = NullValueHandling.Ignore)] diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Stage.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Stage.cs index 6da1a41..e05ebc1 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Stage.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Stage.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.EventModels; +namespace WebhookService.Contracts.EventModels.SharedModels.EventModels; public record class Stage( [property: JsonProperty(PropertyName = "id", NullValueHandling = NullValueHandling.Ignore)] diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Url.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Url.cs index 1e780fd..05eca98 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Url.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/EventModels/Url.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.EventModels; +namespace WebhookService.Contracts.EventModels.SharedModels.EventModels; public record class Url( [property: JsonProperty(PropertyName = "href", NullValueHandling = NullValueHandling.Ignore)] diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/ResourcesModels/BuildAndReleaseResource.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/ResourcesModels/BuildAndReleaseResource.cs index d3a76f9..048f283 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/ResourcesModels/BuildAndReleaseResource.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/ResourcesModels/BuildAndReleaseResource.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.ResourcesModels +namespace WebhookService.Contracts.EventModels.SharedModels.ResourcesModels { public class BuildAndReleaseResource { diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/ResourcesModels/CodeResource.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/ResourcesModels/CodeResource.cs index c0a3621..8778497 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/ResourcesModels/CodeResource.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/ResourcesModels/CodeResource.cs @@ -1,6 +1,6 @@ -using TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.EventModels; +using WebhookService.Contracts.EventModels.SharedModels.EventModels; -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.ResourcesModels; +namespace WebhookService.Contracts.EventModels.SharedModels.ResourcesModels; public record CodeResource( [property: JsonProperty(PropertyName = "Commits", NullValueHandling = NullValueHandling.Ignore)] diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/ResourcesModels/PipelinesResource.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/ResourcesModels/PipelinesResource.cs index ca0a6af..15d4acf 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/ResourcesModels/PipelinesResource.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/ResourcesModels/PipelinesResource.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.ResourcesModels +namespace WebhookService.Contracts.EventModels.SharedModels.ResourcesModels { public class PipeLinesResource { diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/ResourcesModels/RunJobStateChangedResource.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/ResourcesModels/RunJobStateChangedResource.cs index f5670ad..70b84e6 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/ResourcesModels/RunJobStateChangedResource.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/ResourcesModels/RunJobStateChangedResource.cs @@ -1,4 +1,6 @@ -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.ResourcesModels; +using WebhookService.Contracts.EventModels.SharedModels.EventModels; + +namespace WebhookService.Contracts.EventModels.SharedModels.ResourcesModels; public record class RunJobStateChangedResource( [property: JsonProperty(PropertyName = "job", NullValueHandling = NullValueHandling.Ignore)] diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/ResourcesModels/WorkItemResource.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/ResourcesModels/WorkItemResource.cs index 59694ca..3eb5144 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/ResourcesModels/WorkItemResource.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/EventModels/SharedModels/ResourcesModels/WorkItemResource.cs @@ -1,4 +1,6 @@ -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.ResourcesModels; +using WebhookService.Contracts.EventModels.SharedModels.EventModels; + +namespace WebhookService.Contracts.EventModels.SharedModels.ResourcesModels; public record WorkItemResource( [property: JsonProperty(PropertyName = "id", NullValueHandling = NullValueHandling.Ignore)] diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/GlobalUsings.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/GlobalUsings.cs index 6505759..60be85d 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/GlobalUsings.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/GlobalUsings.cs @@ -4,6 +4,4 @@ global using System.Collections.Generic; global using System.Linq; global using System.Text; -global using System.Threading.Tasks; -global using TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels; -global using TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.EventModels; \ No newline at end of file +global using System.Threading.Tasks; \ No newline at end of file diff --git a/src/AzureDevopsWebhookService/WebhookService.Contracts/Settings/RabbitMqSettings.cs b/src/AzureDevopsWebhookService/WebhookService.Contracts/Settings/RabbitMqSettings.cs index 12f6391..c922fdd 100644 --- a/src/AzureDevopsWebhookService/WebhookService.Contracts/Settings/RabbitMqSettings.cs +++ b/src/AzureDevopsWebhookService/WebhookService.Contracts/Settings/RabbitMqSettings.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.Settings; +namespace WebhookService.Contracts.Settings; public class RabbitMqSettings { diff --git a/src/TimeLogIdentityService/IdentityService.API/ExtensionServiceRegistration.cs b/src/TimeLogIdentityService/IdentityService.API/ExtensionServiceRegistration.cs index 99b1bc9..41d03a7 100644 --- a/src/TimeLogIdentityService/IdentityService.API/ExtensionServiceRegistration.cs +++ b/src/TimeLogIdentityService/IdentityService.API/ExtensionServiceRegistration.cs @@ -1,10 +1,11 @@ -using OpenTelemetry.Instrumentation.AspNetCore; +using IdentityService.API; +using OpenTelemetry.Instrumentation.AspNetCore; using OpenTelemetry.Logs; using OpenTelemetry.Metrics; using OpenTelemetry.Resources; using OpenTelemetry.Trace; -namespace AzureDevopsIdentityService +namespace IdentityService.API { public static class ExtensionServiceRegistration { diff --git a/src/TimeLogIdentityService/IdentityService.API/GlobalUsings.cs b/src/TimeLogIdentityService/IdentityService.API/GlobalUsings.cs index 4eba62e..5f2cd74 100644 --- a/src/TimeLogIdentityService/IdentityService.API/GlobalUsings.cs +++ b/src/TimeLogIdentityService/IdentityService.API/GlobalUsings.cs @@ -1,4 +1,3 @@ -global using AzureDevopsIdentityService; -global using Serilog; +global using Serilog; global using Serilog.Events; global using Serilog.Sinks.Grafana.Loki; \ No newline at end of file diff --git a/src/TimeLogIdentityService/IdentityService.API/Program.cs b/src/TimeLogIdentityService/IdentityService.API/Program.cs index c5a54ea..b6832c2 100644 --- a/src/TimeLogIdentityService/IdentityService.API/Program.cs +++ b/src/TimeLogIdentityService/IdentityService.API/Program.cs @@ -1,3 +1,5 @@ +using IdentityService.API; + WebApplicationBuilder builder = WebApplication.CreateBuilder(args); Log.Logger = new LoggerConfiguration() diff --git a/src/TimeLogService/TimeLogService.API/Controllers/TimeLogServiceController.cs b/src/TimeLogService/TimeLogService.API/Controllers/TimeLogServiceController.cs index 59b5591..19fcc2e 100644 --- a/src/TimeLogService/TimeLogService.API/Controllers/TimeLogServiceController.cs +++ b/src/TimeLogService/TimeLogService.API/Controllers/TimeLogServiceController.cs @@ -1,10 +1,16 @@ -using TunNetCom.AionTime.TimeLogService.Application.Feature.OrganizationAction.Commands.AddOrganization; -using TunNetCom.AionTime.TimeLogService.Application.Feature.OrganizationAction.Commands.DeletOrganization; -using TunNetCom.AionTime.TimeLogService.Application.Feature.OrganizationAction.Commands.UpdateOrganization; -using TunNetCom.AionTime.TimeLogService.Application.Feature.OrganizationAction.Queries.GetOrganization; -using TunNetCom.AionTime.TimeLogService.Application.Feature.OrganizationAction.Queries.GetOrganizationById; +using TimeLogService; +using TimeLogService.API; +using TimeLogService.API.Controllers; +using TimeLogService.Application.Feature.OrganizationAction.Commands.AddOrganization; +using TimeLogService.Application.Feature.OrganizationAction.Commands.DeletOrganization; +using TimeLogService.Application.Feature.OrganizationAction.Commands.UpdateOrganization; +using TimeLogService.Application.Feature.OrganizationAction.Queries.GetOrganization; +using TimeLogService.Application.Feature.OrganizationAction.Queries.GetOrganizationById; +using TimeLogService.Contracts.DTOs.Request; +using TunNetCom; +using TunNetCom.AionTime; -namespace TunNetCom.AionTime.TimeLogService.API.Controllers; +namespace TimeLogService.API.Controllers; [ApiController] [Route("[controller]")] diff --git a/src/TimeLogService/TimeLogService.API/ExtentionServiceRegistration.cs b/src/TimeLogService/TimeLogService.API/ExtentionServiceRegistration.cs index af19642..f13722a 100644 --- a/src/TimeLogService/TimeLogService.API/ExtentionServiceRegistration.cs +++ b/src/TimeLogService/TimeLogService.API/ExtentionServiceRegistration.cs @@ -1,4 +1,10 @@ -namespace TunNetCom.AionTime.TimeLogService.API; +using TimeLogService; +using TimeLogService.API; +using TimeLogService.API; +using TunNetCom; +using TunNetCom.AionTime; + +namespace TimeLogService.API; public static class ExtentionServiceRegistration { diff --git a/src/TimeLogService/TimeLogService.API/GlobalUsings.cs b/src/TimeLogService/TimeLogService.API/GlobalUsings.cs index 77731cc..289b52d 100644 --- a/src/TimeLogService/TimeLogService.API/GlobalUsings.cs +++ b/src/TimeLogService/TimeLogService.API/GlobalUsings.cs @@ -10,9 +10,9 @@ global using Serilog; global using Serilog.Events; global using System.Net; -global using TunNetCom.AionTime.TimeLogService.API; -global using TunNetCom.AionTime.TimeLogService.API.Middelware; -global using TunNetCom.AionTime.TimeLogService.Application; -global using TunNetCom.AionTime.TimeLogService.Contracts.DTOs.Request; -global using TunNetCom.AionTime.TimeLogService.Infrastructure; -global using TunNetCom.AionTime.TimeLogService.Infrastructure.AionTimeContext; \ No newline at end of file +global using TimeLogService.API; +global using TimeLogService.API.Middelware; +global using TimeLogService.Application; +global using TimeLogService.Contracts.DTOs.Request; +global using TimeLogService.Infrastructure; +global using TimeLogService.Infrastructure.AionTimeContext; \ No newline at end of file diff --git a/src/TimeLogService/TimeLogService.API/Middelware/GlobalExceptionHandler.cs b/src/TimeLogService/TimeLogService.API/Middelware/GlobalExceptionHandler.cs index 10694a1..1a8024e 100644 --- a/src/TimeLogService/TimeLogService.API/Middelware/GlobalExceptionHandler.cs +++ b/src/TimeLogService/TimeLogService.API/Middelware/GlobalExceptionHandler.cs @@ -1,4 +1,11 @@ -namespace TunNetCom.AionTime.TimeLogService.API.Middelware; +using TimeLogService; +using TimeLogService.API; +using TimeLogService.API.Middelware; +using TimeLogService.API.Middelware; +using TunNetCom; +using TunNetCom.AionTime; + +namespace TimeLogService.API.Middelware; internal sealed class GlobalExceptionHandler(ILogger logger) : IExceptionHandler diff --git a/src/TimeLogService/TimeLogService.API/Program.cs b/src/TimeLogService/TimeLogService.API/Program.cs index a1fc07c..c277323 100644 --- a/src/TimeLogService/TimeLogService.API/Program.cs +++ b/src/TimeLogService/TimeLogService.API/Program.cs @@ -1,6 +1,10 @@ using MassTransit; -using TunNetCom.AionTime.TimeLogService.Application.Feature.RabbitMqConsumer.WebhookConsumer; -using TunNetCom.AionTime.TimeLogService.Contracts.Settings; +using TimeLogService.API; +using TimeLogService.API.Middelware; +using TimeLogService.Application; +using TimeLogService.Application.Feature.RabbitMqConsumer.WebhookConsumer; +using TimeLogService.Contracts.Settings; +using TimeLogService.Infrastructure; Log.Logger = new LoggerConfiguration() .MinimumLevel.Override("Microsoft", LogEventLevel.Information) diff --git a/src/TimeLogService/TimeLogService.Application/ApplicationServiceRegistration.cs b/src/TimeLogService/TimeLogService.Application/ApplicationServiceRegistration.cs index c79b92e..b89a6c8 100644 --- a/src/TimeLogService/TimeLogService.Application/ApplicationServiceRegistration.cs +++ b/src/TimeLogService/TimeLogService.Application/ApplicationServiceRegistration.cs @@ -1,12 +1,4 @@ -using MassTransit; -using Microsoft.Extensions.Options; -using TunNetCom.AionTime.TimeLogService.Application.Feature.RabbitMqConsumer.WebhookConsumer; -using TunNetCom.AionTime.TimeLogService.Contracts.Settings; -using static MassTransit.Logging.OperationName; -using static Org.BouncyCastle.Math.EC.ECCurve; -using RabbitMqSettings = TunNetCom.AionTime.TimeLogService.Contracts.Settings.RabbitMqSettings; - -namespace TunNetCom.AionTime.TimeLogService.Application +namespace TimeLogService.Application { public static class ApplicationServiceRegistration { diff --git a/src/TimeLogService/TimeLogService.Application/AutoMapping/MappingProfile.cs b/src/TimeLogService/TimeLogService.Application/AutoMapping/MappingProfile.cs index 87a0577..044825f 100644 --- a/src/TimeLogService/TimeLogService.Application/AutoMapping/MappingProfile.cs +++ b/src/TimeLogService/TimeLogService.Application/AutoMapping/MappingProfile.cs @@ -1,4 +1,11 @@ -namespace TunNetCom.AionTime.TimeLogService.Application.AutoMapping +using TimeLogService; +using TimeLogService.Application.AutoMapping; +using TimeLogService.Contracts.DTOs.Request; +using TimeLogService.Domain.Models.Dbo; +using TunNetCom; +using TunNetCom.AionTime; + +namespace TimeLogService.Application.AutoMapping { public class MappingProfile : Profile { diff --git a/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Commands/AddOrganization/AddOrganizationCommand.cs b/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Commands/AddOrganization/AddOrganizationCommand.cs index d237773..e435c20 100644 --- a/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Commands/AddOrganization/AddOrganizationCommand.cs +++ b/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Commands/AddOrganization/AddOrganizationCommand.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.TimeLogService.Application.Feature.OrganizationAction.Commands.AddOrganization; +namespace TimeLogService.Application.Feature.OrganizationAction.Commands.AddOrganization; public record AddOrganizationCommand(OrganizationRequest Organization) : IRequest; \ No newline at end of file diff --git a/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Commands/AddOrganization/AddOrganizationCommandHandler.cs b/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Commands/AddOrganization/AddOrganizationCommandHandler.cs index a5647f4..b022fac 100644 --- a/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Commands/AddOrganization/AddOrganizationCommandHandler.cs +++ b/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Commands/AddOrganization/AddOrganizationCommandHandler.cs @@ -1,7 +1,4 @@ -using TunNetCom.AionTime.TimeLogService.Domain.Interfaces.Repositories; -using TunNetCom.AionTime.TimeLogService.Domain.Models.Dbo; - -namespace TunNetCom.AionTime.TimeLogService.Application.Feature.OrganizationAction.Commands.AddOrganization; +namespace TimeLogService.Application.Feature.OrganizationAction.Commands.AddOrganization; public class AddOrganizationCommandHandler(IRepository organizationRepository, IMapper mapper) : IRequestHandler diff --git a/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Commands/DeletOrganization/DeleteOrganizationCommand.cs b/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Commands/DeletOrganization/DeleteOrganizationCommand.cs index e564b4e..17b12fc 100644 --- a/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Commands/DeletOrganization/DeleteOrganizationCommand.cs +++ b/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Commands/DeletOrganization/DeleteOrganizationCommand.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.TimeLogService.Application.Feature.OrganizationAction.Commands.DeletOrganization; +namespace TimeLogService.Application.Feature.OrganizationAction.Commands.DeletOrganization; public record DeleteOrganizationCommand(int Id) : IRequest; \ No newline at end of file diff --git a/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Commands/DeletOrganization/DeleteOrganizationCommandHandler.cs b/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Commands/DeletOrganization/DeleteOrganizationCommandHandler.cs index 6d65e79..8d131f1 100644 --- a/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Commands/DeletOrganization/DeleteOrganizationCommandHandler.cs +++ b/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Commands/DeletOrganization/DeleteOrganizationCommandHandler.cs @@ -1,6 +1,4 @@ -using TunNetCom.AionTime.TimeLogService.Domain.Interfaces.Repositories; - -namespace TunNetCom.AionTime.TimeLogService.Application.Feature.OrganizationAction.Commands.DeletOrganization; +namespace TimeLogService.Application.Feature.OrganizationAction.Commands.DeletOrganization; public class DeleteOrganizationCommandHandler(IRepository organizationRepository) : IRequestHandler diff --git a/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Commands/UpdateOrganization/UpdateOrganizationCommand.cs b/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Commands/UpdateOrganization/UpdateOrganizationCommand.cs index 9df141f..4edf416 100644 --- a/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Commands/UpdateOrganization/UpdateOrganizationCommand.cs +++ b/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Commands/UpdateOrganization/UpdateOrganizationCommand.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.TimeLogService.Application.Feature.OrganizationAction.Commands.UpdateOrganization; +namespace TimeLogService.Application.Feature.OrganizationAction.Commands.UpdateOrganization; public record UpdateOrganizationCommand(OrganizationRequest Organization) : IRequest; \ No newline at end of file diff --git a/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Commands/UpdateOrganization/UpdateOrganizationCommandHandler.cs b/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Commands/UpdateOrganization/UpdateOrganizationCommandHandler.cs index 0a38574..e1441b6 100644 --- a/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Commands/UpdateOrganization/UpdateOrganizationCommandHandler.cs +++ b/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Commands/UpdateOrganization/UpdateOrganizationCommandHandler.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.TimeLogService.Application.Feature.OrganizationAction.Commands.UpdateOrganization; +namespace TimeLogService.Application.Feature.OrganizationAction.Commands.UpdateOrganization; public class UpdateOrganizationCommandHandler(IRepository organizationRepository, IMapper mapper) : IRequestHandler diff --git a/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Queries/GetOrganization/GetOrganizationsQuery.cs b/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Queries/GetOrganization/GetOrganizationsQuery.cs index 88c22b6..a1ee6ae 100644 --- a/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Queries/GetOrganization/GetOrganizationsQuery.cs +++ b/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Queries/GetOrganization/GetOrganizationsQuery.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.TimeLogService.Application.Feature.OrganizationAction.Queries.GetOrganization; +namespace TimeLogService.Application.Feature.OrganizationAction.Queries.GetOrganization; public record GetOrganizationsQuery() : IRequest>; \ No newline at end of file diff --git a/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Queries/GetOrganization/GetOrganizationsQueryHandler.cs b/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Queries/GetOrganization/GetOrganizationsQueryHandler.cs index 32d5542..de6df8b 100644 --- a/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Queries/GetOrganization/GetOrganizationsQueryHandler.cs +++ b/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Queries/GetOrganization/GetOrganizationsQueryHandler.cs @@ -1,7 +1,4 @@ -using TunNetCom.AionTime.TimeLogService.Domain.Interfaces.Repositories; -using TunNetCom.AionTime.TimeLogService.Domain.Models.Dbo; - -namespace TunNetCom.AionTime.TimeLogService.Application.Feature.OrganizationAction.Queries.GetOrganization; +namespace TimeLogService.Application.Feature.OrganizationAction.Queries.GetOrganization; public class GetOrganizationsQueryHandler(IRepository organizationRepository, IMapper mapper) : IRequestHandler> diff --git a/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Queries/GetOrganizationById/GetOrganizationByIdQuery.cs b/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Queries/GetOrganizationById/GetOrganizationByIdQuery.cs index 736107e..d3e4733 100644 --- a/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Queries/GetOrganizationById/GetOrganizationByIdQuery.cs +++ b/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Queries/GetOrganizationById/GetOrganizationByIdQuery.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.TimeLogService.Application.Feature.OrganizationAction.Queries.GetOrganizationById; +namespace TimeLogService.Application.Feature.OrganizationAction.Queries.GetOrganizationById; public record GetOrganizationByIdQuery(int Id) : IRequest; \ No newline at end of file diff --git a/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Queries/GetOrganizationById/GetOrganizationQueryHandler.cs b/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Queries/GetOrganizationById/GetOrganizationQueryHandler.cs index bff1bad..f7c00a0 100644 --- a/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Queries/GetOrganizationById/GetOrganizationQueryHandler.cs +++ b/src/TimeLogService/TimeLogService.Application/Feature/OrganizationAction/Queries/GetOrganizationById/GetOrganizationQueryHandler.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.TimeLogService.Application.Feature.OrganizationAction.Queries.GetOrganizationById; +namespace TimeLogService.Application.Feature.OrganizationAction.Queries.GetOrganizationById; public class GetOrganizationQueryHandler(IRepository organizationRepository, IMapper mapper) : IRequestHandler diff --git a/src/TimeLogService/TimeLogService.Application/Feature/RabbitMqConsumer/WebhookConsumer/BuildAndReleasEventsConsumer.cs b/src/TimeLogService/TimeLogService.Application/Feature/RabbitMqConsumer/WebhookConsumer/BuildAndReleasEventsConsumer.cs index 664a864..06700be 100644 --- a/src/TimeLogService/TimeLogService.Application/Feature/RabbitMqConsumer/WebhookConsumer/BuildAndReleasEventsConsumer.cs +++ b/src/TimeLogService/TimeLogService.Application/Feature/RabbitMqConsumer/WebhookConsumer/BuildAndReleasEventsConsumer.cs @@ -1,12 +1,4 @@ -using MassTransit; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace TunNetCom.AionTime.TimeLogService.Application.Feature.RabbitMqConsumer.WebhookConsumer; +namespace TimeLogService.Application.Feature.RabbitMqConsumer.WebhookConsumer; public class BuildAndReleasEventsConsumer : IConsumer> { diff --git a/src/TimeLogService/TimeLogService.Application/Feature/RabbitMqConsumer/WebhookConsumer/CodeEventsConsumer.cs b/src/TimeLogService/TimeLogService.Application/Feature/RabbitMqConsumer/WebhookConsumer/CodeEventsConsumer.cs index 5fe9bea..0940587 100644 --- a/src/TimeLogService/TimeLogService.Application/Feature/RabbitMqConsumer/WebhookConsumer/CodeEventsConsumer.cs +++ b/src/TimeLogService/TimeLogService.Application/Feature/RabbitMqConsumer/WebhookConsumer/CodeEventsConsumer.cs @@ -1,12 +1,4 @@ -using MassTransit; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace TunNetCom.AionTime.TimeLogService.Application.Feature.RabbitMqConsumer.WebhookConsumer; +namespace TimeLogService.Application.Feature.RabbitMqConsumer.WebhookConsumer; public class CodeEventsConsumer : IConsumer> { diff --git a/src/TimeLogService/TimeLogService.Application/Feature/RabbitMqConsumer/WebhookConsumer/PipelineEventConsumer.cs b/src/TimeLogService/TimeLogService.Application/Feature/RabbitMqConsumer/WebhookConsumer/PipelineEventConsumer.cs index 2de84ed..ad62340 100644 --- a/src/TimeLogService/TimeLogService.Application/Feature/RabbitMqConsumer/WebhookConsumer/PipelineEventConsumer.cs +++ b/src/TimeLogService/TimeLogService.Application/Feature/RabbitMqConsumer/WebhookConsumer/PipelineEventConsumer.cs @@ -1,12 +1,4 @@ -using MassTransit; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace TunNetCom.AionTime.TimeLogService.Application.Feature.RabbitMqConsumer.WebhookConsumer +namespace TimeLogService.Application.Feature.RabbitMqConsumer.WebhookConsumer { public class PipelineEventConsumer : IConsumer> { diff --git a/src/TimeLogService/TimeLogService.Application/Feature/RabbitMqConsumer/WebhookConsumer/WorkItemEventConsumer.cs b/src/TimeLogService/TimeLogService.Application/Feature/RabbitMqConsumer/WebhookConsumer/WorkItemEventConsumer.cs index f78d116..3cf4f11 100644 --- a/src/TimeLogService/TimeLogService.Application/Feature/RabbitMqConsumer/WebhookConsumer/WorkItemEventConsumer.cs +++ b/src/TimeLogService/TimeLogService.Application/Feature/RabbitMqConsumer/WebhookConsumer/WorkItemEventConsumer.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.TimeLogService.Application.Feature.RabbitMqConsumer.WebhookConsumer; +namespace TimeLogService.Application.Feature.RabbitMqConsumer.WebhookConsumer; public class WorkItemEventConsumer : IConsumer> { diff --git a/src/TimeLogService/TimeLogService.Application/GlobalUsings.cs b/src/TimeLogService/TimeLogService.Application/GlobalUsings.cs index 3ebe52f..341902b 100644 --- a/src/TimeLogService/TimeLogService.Application/GlobalUsings.cs +++ b/src/TimeLogService/TimeLogService.Application/GlobalUsings.cs @@ -3,10 +3,20 @@ global using MediatR; global using Microsoft.Extensions.Configuration; global using Microsoft.Extensions.DependencyInjection; +global using Microsoft.Extensions.Options; global using Newtonsoft.Json; global using System.Reflection; -global using TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels; -global using TunNetCom.AionTime.AzureDevops.WebhookService.Contracts.EventModels.SharedModels.ResourcesModels; -global using TunNetCom.AionTime.TimeLogService.Contracts.DTOs.Request; -global using TunNetCom.AionTime.TimeLogService.Domain.Interfaces.Repositories; -global using TunNetCom.AionTime.TimeLogService.Domain.Models.Dbo; \ No newline at end of file +global using TimeLogService; +global using TimeLogService.Application; +global using TimeLogService.Application.Feature.RabbitMqConsumer.WebhookConsumer; +global using TimeLogService.Contracts.DTOs.Request; +global using TimeLogService.Contracts.Settings; +global using TimeLogService.Domain.Interfaces.Repositories; +global using TimeLogService.Domain.Models.Dbo; +global using TunNetCom; +global using TunNetCom.AionTime; +global using WebhookService.Contracts.EventModels.SharedModels; +global using WebhookService.Contracts.EventModels.SharedModels.ResourcesModels; +global using static MassTransit.Logging.OperationName; +global using static Org.BouncyCastle.Math.EC.ECCurve; +global using RabbitMqSettings = TimeLogService.Contracts.Settings.RabbitMqSettings; \ No newline at end of file diff --git a/src/TimeLogService/TimeLogService.Application/TimeLogService.Application.csproj b/src/TimeLogService/TimeLogService.Application/TimeLogService.Application.csproj index a538759..cb934b5 100644 --- a/src/TimeLogService/TimeLogService.Application/TimeLogService.Application.csproj +++ b/src/TimeLogService/TimeLogService.Application/TimeLogService.Application.csproj @@ -15,6 +15,7 @@ + diff --git a/src/TimeLogService/TimeLogService.Contracts/DTOs/Request/OrganizationRequest.cs b/src/TimeLogService/TimeLogService.Contracts/DTOs/Request/OrganizationRequest.cs index af96fe9..0b70e93 100644 --- a/src/TimeLogService/TimeLogService.Contracts/DTOs/Request/OrganizationRequest.cs +++ b/src/TimeLogService/TimeLogService.Contracts/DTOs/Request/OrganizationRequest.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.TimeLogService.Contracts.DTOs.Request; +namespace TimeLogService.Contracts.DTOs.Request; public class OrganizationRequest { diff --git a/src/TimeLogService/TimeLogService.Contracts/DTOs/Request/ProjectRequest.cs b/src/TimeLogService/TimeLogService.Contracts/DTOs/Request/ProjectRequest.cs index 30208c2..6ebccae 100644 --- a/src/TimeLogService/TimeLogService.Contracts/DTOs/Request/ProjectRequest.cs +++ b/src/TimeLogService/TimeLogService.Contracts/DTOs/Request/ProjectRequest.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.TimeLogService.Contracts.DTOs.Request; +namespace TimeLogService.Contracts.DTOs.Request; public class ProjectRequest { diff --git a/src/TimeLogService/TimeLogService.Contracts/DTOs/Request/WorkItemHistoryRequest.cs b/src/TimeLogService/TimeLogService.Contracts/DTOs/Request/WorkItemHistoryRequest.cs index e1e740c..e3f1a9c 100644 --- a/src/TimeLogService/TimeLogService.Contracts/DTOs/Request/WorkItemHistoryRequest.cs +++ b/src/TimeLogService/TimeLogService.Contracts/DTOs/Request/WorkItemHistoryRequest.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.TimeLogService.Contracts.DTOs.Request; +namespace TimeLogService.Contracts.DTOs.Request; public class WorkItemHistoryRequest { diff --git a/src/TimeLogService/TimeLogService.Contracts/DTOs/Request/WorkItemRequest.cs b/src/TimeLogService/TimeLogService.Contracts/DTOs/Request/WorkItemRequest.cs index 3859dea..b25865a 100644 --- a/src/TimeLogService/TimeLogService.Contracts/DTOs/Request/WorkItemRequest.cs +++ b/src/TimeLogService/TimeLogService.Contracts/DTOs/Request/WorkItemRequest.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.TimeLogService.Contracts.DTOs.Request; +namespace TimeLogService.Contracts.DTOs.Request; public class WorkItemRequest { diff --git a/src/TimeLogService/TimeLogService.Contracts/DTOs/Request/WorkItemTimeLogRequest.cs b/src/TimeLogService/TimeLogService.Contracts/DTOs/Request/WorkItemTimeLogRequest.cs index eb6f439..d17e4d6 100644 --- a/src/TimeLogService/TimeLogService.Contracts/DTOs/Request/WorkItemTimeLogRequest.cs +++ b/src/TimeLogService/TimeLogService.Contracts/DTOs/Request/WorkItemTimeLogRequest.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.TimeLogService.Contracts.DTOs.Request; +namespace TimeLogService.Contracts.DTOs.Request; public class WorkItemTimeLogRequest { diff --git a/src/TimeLogService/TimeLogService.Contracts/DTOs/Respons/OrganizationResponse.cs b/src/TimeLogService/TimeLogService.Contracts/DTOs/Respons/OrganizationResponse.cs index 5d39581..0ba4e24 100644 --- a/src/TimeLogService/TimeLogService.Contracts/DTOs/Respons/OrganizationResponse.cs +++ b/src/TimeLogService/TimeLogService.Contracts/DTOs/Respons/OrganizationResponse.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.TimeLogService.Contracts.DTOs.Respons; +namespace TimeLogService.Contracts.DTOs.Respons; public class OrganizationResponse { diff --git a/src/TimeLogService/TimeLogService.Contracts/DTOs/Respons/ProjectResponse.cs b/src/TimeLogService/TimeLogService.Contracts/DTOs/Respons/ProjectResponse.cs index 4980d6d..0280b72 100644 --- a/src/TimeLogService/TimeLogService.Contracts/DTOs/Respons/ProjectResponse.cs +++ b/src/TimeLogService/TimeLogService.Contracts/DTOs/Respons/ProjectResponse.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.TimeLogService.Contracts.DTOs.Respons; +namespace TimeLogService.Contracts.DTOs.Respons; public class ProjectResponse { diff --git a/src/TimeLogService/TimeLogService.Contracts/DTOs/Respons/WorkItemHistoryResponse.cs b/src/TimeLogService/TimeLogService.Contracts/DTOs/Respons/WorkItemHistoryResponse.cs index dfc5d19..b636be3 100644 --- a/src/TimeLogService/TimeLogService.Contracts/DTOs/Respons/WorkItemHistoryResponse.cs +++ b/src/TimeLogService/TimeLogService.Contracts/DTOs/Respons/WorkItemHistoryResponse.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.TimeLogService.Contracts.DTOs.Respons +namespace TimeLogService.Contracts.DTOs.Respons { public class WorkItemHistoryResponse { diff --git a/src/TimeLogService/TimeLogService.Contracts/DTOs/Respons/WorkItemResponse.cs b/src/TimeLogService/TimeLogService.Contracts/DTOs/Respons/WorkItemResponse.cs index 0a12ba9..3eb22b5 100644 --- a/src/TimeLogService/TimeLogService.Contracts/DTOs/Respons/WorkItemResponse.cs +++ b/src/TimeLogService/TimeLogService.Contracts/DTOs/Respons/WorkItemResponse.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.TimeLogService.Contracts.DTOs.Respons; +namespace TimeLogService.Contracts.DTOs.Respons; public class WorkItemResponse { diff --git a/src/TimeLogService/TimeLogService.Contracts/DTOs/Respons/WorkItemTimeLogResponse.cs b/src/TimeLogService/TimeLogService.Contracts/DTOs/Respons/WorkItemTimeLogResponse.cs index 95e2bbd..f8befa5 100644 --- a/src/TimeLogService/TimeLogService.Contracts/DTOs/Respons/WorkItemTimeLogResponse.cs +++ b/src/TimeLogService/TimeLogService.Contracts/DTOs/Respons/WorkItemTimeLogResponse.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.TimeLogService.Contracts.DTOs.Respons; +namespace TimeLogService.Contracts.DTOs.Respons; public class WorkItemTimeLogResponse { diff --git a/src/TimeLogService/TimeLogService.Contracts/Settings/RabbitMqSettings.cs b/src/TimeLogService/TimeLogService.Contracts/Settings/RabbitMqSettings.cs index 49ed63f..3f03072 100644 --- a/src/TimeLogService/TimeLogService.Contracts/Settings/RabbitMqSettings.cs +++ b/src/TimeLogService/TimeLogService.Contracts/Settings/RabbitMqSettings.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.TimeLogService.Contracts.Settings; +namespace TimeLogService.Contracts.Settings; public class RabbitMqSettings { diff --git a/src/TimeLogService/TimeLogService.Contracts/TimeLogService.Contracts.csproj b/src/TimeLogService/TimeLogService.Contracts/TimeLogService.Contracts.csproj index 49069fb..cf09d0f 100644 --- a/src/TimeLogService/TimeLogService.Contracts/TimeLogService.Contracts.csproj +++ b/src/TimeLogService/TimeLogService.Contracts/TimeLogService.Contracts.csproj @@ -11,8 +11,4 @@ - - - - diff --git a/src/TimeLogService/TimeLogService.Domain/GlobalUsings.cs b/src/TimeLogService/TimeLogService.Domain/GlobalUsings.cs index 98e7adb..8e5c2f5 100644 --- a/src/TimeLogService/TimeLogService.Domain/GlobalUsings.cs +++ b/src/TimeLogService/TimeLogService.Domain/GlobalUsings.cs @@ -1,2 +1,3 @@ -global using System.ComponentModel.DataAnnotations; -global using TunNetCom.AionTime.TimeLogService.Domain.Models.Dbo; \ No newline at end of file +global using MediatR; +global using System.ComponentModel.DataAnnotations; +global using TimeLogService.Domain.Models.Dbo; \ No newline at end of file diff --git a/src/TimeLogService/TimeLogService.Domain/Interfaces/Repositories/IRepository.cs b/src/TimeLogService/TimeLogService.Domain/Interfaces/Repositories/IRepository.cs index bc4993a..7fb949a 100644 --- a/src/TimeLogService/TimeLogService.Domain/Interfaces/Repositories/IRepository.cs +++ b/src/TimeLogService/TimeLogService.Domain/Interfaces/Repositories/IRepository.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.TimeLogService.Domain.Interfaces.Repositories; +namespace TimeLogService.Domain.Interfaces.Repositories; public interface IRepository where T : BaseEntity diff --git a/src/TimeLogService/TimeLogService.Domain/Models/dbo/BaseEntity.cs b/src/TimeLogService/TimeLogService.Domain/Models/dbo/BaseEntity.cs index 35ffa3f..6e9364f 100644 --- a/src/TimeLogService/TimeLogService.Domain/Models/dbo/BaseEntity.cs +++ b/src/TimeLogService/TimeLogService.Domain/Models/dbo/BaseEntity.cs @@ -1,6 +1,4 @@ -using MediatR; - -namespace TunNetCom.AionTime.TimeLogService.Domain.Models.Dbo; +namespace TimeLogService.Domain.Models.Dbo; public abstract partial class BaseEntity : IRequest { diff --git a/src/TimeLogService/TimeLogService.Domain/Models/dbo/Organization.cs b/src/TimeLogService/TimeLogService.Domain/Models/dbo/Organization.cs index 6672502..a60f06b 100644 --- a/src/TimeLogService/TimeLogService.Domain/Models/dbo/Organization.cs +++ b/src/TimeLogService/TimeLogService.Domain/Models/dbo/Organization.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.TimeLogService.Domain.Models.Dbo; +namespace TimeLogService.Domain.Models.Dbo; public partial class Organization : BaseEntity { diff --git a/src/TimeLogService/TimeLogService.Domain/Models/dbo/Project.cs b/src/TimeLogService/TimeLogService.Domain/Models/dbo/Project.cs index 372cc4c..4d943a4 100644 --- a/src/TimeLogService/TimeLogService.Domain/Models/dbo/Project.cs +++ b/src/TimeLogService/TimeLogService.Domain/Models/dbo/Project.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.TimeLogService.Domain.Models.Dbo; +namespace TimeLogService.Domain.Models.Dbo; public partial class Project : BaseEntity { diff --git a/src/TimeLogService/TimeLogService.Domain/Models/dbo/WorkItem.cs b/src/TimeLogService/TimeLogService.Domain/Models/dbo/WorkItem.cs index 9fd9941..15d0061 100644 --- a/src/TimeLogService/TimeLogService.Domain/Models/dbo/WorkItem.cs +++ b/src/TimeLogService/TimeLogService.Domain/Models/dbo/WorkItem.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.TimeLogService.Domain.Models.Dbo; +namespace TimeLogService.Domain.Models.Dbo; public partial class WorkItem : BaseEntity { diff --git a/src/TimeLogService/TimeLogService.Domain/Models/dbo/WorkItemHistory.cs b/src/TimeLogService/TimeLogService.Domain/Models/dbo/WorkItemHistory.cs index c733c81..c7c5f15 100644 --- a/src/TimeLogService/TimeLogService.Domain/Models/dbo/WorkItemHistory.cs +++ b/src/TimeLogService/TimeLogService.Domain/Models/dbo/WorkItemHistory.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.TimeLogService.Domain.Models.Dbo; +namespace TimeLogService.Domain.Models.Dbo; public partial class WorkItemHistory : BaseEntity { diff --git a/src/TimeLogService/TimeLogService.Domain/Models/dbo/WorkItemTimeLog.cs b/src/TimeLogService/TimeLogService.Domain/Models/dbo/WorkItemTimeLog.cs index 2dc341f..91e7a46 100644 --- a/src/TimeLogService/TimeLogService.Domain/Models/dbo/WorkItemTimeLog.cs +++ b/src/TimeLogService/TimeLogService.Domain/Models/dbo/WorkItemTimeLog.cs @@ -1,4 +1,4 @@ -namespace TunNetCom.AionTime.TimeLogService.Domain.Models.Dbo; +namespace TimeLogService.Domain.Models.Dbo; public partial class WorkItemTimeLog : BaseEntity { diff --git a/src/TimeLogService/TimeLogService.Domain/TimeLogService.Domain.csproj b/src/TimeLogService/TimeLogService.Domain/TimeLogService.Domain.csproj index 9dd991a..eee0642 100644 --- a/src/TimeLogService/TimeLogService.Domain/TimeLogService.Domain.csproj +++ b/src/TimeLogService/TimeLogService.Domain/TimeLogService.Domain.csproj @@ -2,7 +2,7 @@ net8.0 - TunNetCom.AionTime.TimeLogService.Domain + TimeLogService.Domain enable enable diff --git a/src/TimeLogService/TimeLogService.Infrastructure/AionTimeContext/Configurations/OrganizationConfiguration.cs b/src/TimeLogService/TimeLogService.Infrastructure/AionTimeContext/Configurations/OrganizationConfiguration.cs index e3f9019..aa590cd 100644 --- a/src/TimeLogService/TimeLogService.Infrastructure/AionTimeContext/Configurations/OrganizationConfiguration.cs +++ b/src/TimeLogService/TimeLogService.Infrastructure/AionTimeContext/Configurations/OrganizationConfiguration.cs @@ -1,7 +1,5 @@ // This file has been auto generated by EF Core Power Tools. -using TunNetCom.AionTime.TimeLogService.Infrastructure.MultiTenancy; - -namespace TunNetCom.AionTime.TimeLogService.Infrastructure.AionTimeContext.Configurations +namespace TimeLogService.Infrastructure.AionTimeContext.Configurations { public partial class OrganizationConfiguration : IEntityTypeConfiguration { diff --git a/src/TimeLogService/TimeLogService.Infrastructure/AionTimeContext/Configurations/ProjectConfiguration.cs b/src/TimeLogService/TimeLogService.Infrastructure/AionTimeContext/Configurations/ProjectConfiguration.cs index 5a7e7ed..64abd4a 100644 --- a/src/TimeLogService/TimeLogService.Infrastructure/AionTimeContext/Configurations/ProjectConfiguration.cs +++ b/src/TimeLogService/TimeLogService.Infrastructure/AionTimeContext/Configurations/ProjectConfiguration.cs @@ -1,7 +1,7 @@ // This file has been auto generated by EF Core Power Tools. #nullable disable -namespace TunNetCom.AionTime.TimeLogService.Infrastructure.AionTimeContext.Configurations +namespace TimeLogService.Infrastructure.AionTimeContext.Configurations { public partial class ProjectConfiguration : IEntityTypeConfiguration { diff --git a/src/TimeLogService/TimeLogService.Infrastructure/AionTimeContext/Configurations/WorkItemConfiguration.cs b/src/TimeLogService/TimeLogService.Infrastructure/AionTimeContext/Configurations/WorkItemConfiguration.cs index 93b908a..63c04c0 100644 --- a/src/TimeLogService/TimeLogService.Infrastructure/AionTimeContext/Configurations/WorkItemConfiguration.cs +++ b/src/TimeLogService/TimeLogService.Infrastructure/AionTimeContext/Configurations/WorkItemConfiguration.cs @@ -1,6 +1,6 @@ // This file has been auto generated by EF Core Power Tools. -namespace TunNetCom.AionTime.TimeLogService.Infrastructure.AionTimeContext.Configurations +namespace TimeLogService.Infrastructure.AionTimeContext.Configurations { public partial class WorkItemConfiguration : IEntityTypeConfiguration { diff --git a/src/TimeLogService/TimeLogService.Infrastructure/AionTimeContext/Configurations/WorkItemHistoryConfiguration.cs b/src/TimeLogService/TimeLogService.Infrastructure/AionTimeContext/Configurations/WorkItemHistoryConfiguration.cs index 80ea9f1..c5e9922 100644 --- a/src/TimeLogService/TimeLogService.Infrastructure/AionTimeContext/Configurations/WorkItemHistoryConfiguration.cs +++ b/src/TimeLogService/TimeLogService.Infrastructure/AionTimeContext/Configurations/WorkItemHistoryConfiguration.cs @@ -1,6 +1,6 @@ // This file has been auto generated by EF Core Power Tools. -namespace TunNetCom.AionTime.TimeLogService.Infrastructure.AionTimeContext.Configurations +namespace TimeLogService.Infrastructure.AionTimeContext.Configurations { public partial class WorkItemHistoryConfiguration : IEntityTypeConfiguration { diff --git a/src/TimeLogService/TimeLogService.Infrastructure/AionTimeContext/Configurations/WorkItemTimeLogConfiguration.cs b/src/TimeLogService/TimeLogService.Infrastructure/AionTimeContext/Configurations/WorkItemTimeLogConfiguration.cs index 4c64878..f6a1cfa 100644 --- a/src/TimeLogService/TimeLogService.Infrastructure/AionTimeContext/Configurations/WorkItemTimeLogConfiguration.cs +++ b/src/TimeLogService/TimeLogService.Infrastructure/AionTimeContext/Configurations/WorkItemTimeLogConfiguration.cs @@ -1,6 +1,6 @@ // This file has been auto generated by EF Core Power Tools. -namespace TunNetCom.AionTime.TimeLogService.Infrastructure.AionTimeContext.Configurations +namespace TimeLogService.Infrastructure.AionTimeContext.Configurations { public partial class WorkItemTimeLogConfiguration : IEntityTypeConfiguration { diff --git a/src/TimeLogService/TimeLogService.Infrastructure/AionTimeContext/TunNetComAionTimeTimeLogServiceDataBaseContext.cs b/src/TimeLogService/TimeLogService.Infrastructure/AionTimeContext/TunNetComAionTimeTimeLogServiceDataBaseContext.cs index 10a1976..5bf5bde 100644 --- a/src/TimeLogService/TimeLogService.Infrastructure/AionTimeContext/TunNetComAionTimeTimeLogServiceDataBaseContext.cs +++ b/src/TimeLogService/TimeLogService.Infrastructure/AionTimeContext/TunNetComAionTimeTimeLogServiceDataBaseContext.cs @@ -1,10 +1,6 @@ // This file has been auto generated by EF Core Power Tools. -using NPOI.SS.Formula.Functions; -using TunNetCom.AionTime.TimeLogService.Infrastructure.MultiTenancy; -using static Microsoft.EntityFrameworkCore.DbLoggerCategory.Database; - -namespace TunNetCom.AionTime.TimeLogService.Infrastructure.AionTimeContext; +namespace TimeLogService.Infrastructure.AionTimeContext; public partial class TunNetComAionTimeTimeLogServiceDataBaseContext : DbContext { diff --git a/src/TimeLogService/TimeLogService.Infrastructure/GlobalUsings.cs b/src/TimeLogService/TimeLogService.Infrastructure/GlobalUsings.cs index fabec84..e456d38 100644 --- a/src/TimeLogService/TimeLogService.Infrastructure/GlobalUsings.cs +++ b/src/TimeLogService/TimeLogService.Infrastructure/GlobalUsings.cs @@ -1,4 +1,14 @@ -global using Microsoft.EntityFrameworkCore; +global using Microsoft.AspNetCore.Http; +global using Microsoft.EntityFrameworkCore; global using Microsoft.EntityFrameworkCore.Metadata.Builders; -global using TunNetCom.AionTime.TimeLogService.Domain.Models.Dbo; -global using TunNetCom.AionTime.TimeLogService.Infrastructure.AionTimeContext; \ No newline at end of file +global using Microsoft.Extensions.Configuration; +global using Microsoft.Extensions.DependencyInjection; +global using System; +global using System.Collections.Generic; +global using TimeLogService; +global using TimeLogService.Domain.Interfaces.Repositories; +global using TimeLogService.Domain.Models.Dbo; +global using TimeLogService.Infrastructure; +global using TimeLogService.Infrastructure.AionTimeContext; +global using TimeLogService.Infrastructure.MultiTenancy; +global using TimeLogService.Infrastructure.Repositories; \ No newline at end of file diff --git a/src/TimeLogService/TimeLogService.Infrastructure/InfrastructureServiceRegistration.cs b/src/TimeLogService/TimeLogService.Infrastructure/InfrastructureServiceRegistration.cs index 42e5c43..cc62aba 100644 --- a/src/TimeLogService/TimeLogService.Infrastructure/InfrastructureServiceRegistration.cs +++ b/src/TimeLogService/TimeLogService.Infrastructure/InfrastructureServiceRegistration.cs @@ -1,10 +1,4 @@ -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using TunNetCom.AionTime.TimeLogService.Domain.Interfaces.Repositories; -using TunNetCom.AionTime.TimeLogService.Infrastructure.MultiTenancy; -using TunNetCom.AionTime.TimeLogService.Infrastructure.Repositories; - -namespace TunNetCom.AionTime.TimeLogService.Infrastructure; +namespace TimeLogService.Infrastructure; public static class InfrastructureServiceRegistration { diff --git a/src/TimeLogService/TimeLogService.Infrastructure/MultiTenancy/MultiTenancyService.cs b/src/TimeLogService/TimeLogService.Infrastructure/MultiTenancy/MultiTenancyService.cs index df8dafa..ee1a394 100644 --- a/src/TimeLogService/TimeLogService.Infrastructure/MultiTenancy/MultiTenancyService.cs +++ b/src/TimeLogService/TimeLogService.Infrastructure/MultiTenancy/MultiTenancyService.cs @@ -1,8 +1,4 @@ -using Microsoft.AspNetCore.Http; -using System; -using System.Collections.Generic; - -namespace TunNetCom.AionTime.TimeLogService.Infrastructure.MultiTenancy +namespace TimeLogService.Infrastructure.MultiTenancy { public sealed class MultiTenancyService(IHttpContextAccessor httpContextAccessor) { diff --git a/src/TimeLogService/TimeLogService.Infrastructure/Repositories/Repository.cs b/src/TimeLogService/TimeLogService.Infrastructure/Repositories/Repository.cs index 15e8471..39e7e51 100644 --- a/src/TimeLogService/TimeLogService.Infrastructure/Repositories/Repository.cs +++ b/src/TimeLogService/TimeLogService.Infrastructure/Repositories/Repository.cs @@ -1,6 +1,4 @@ -using TunNetCom.AionTime.TimeLogService.Domain.Interfaces.Repositories; - -namespace TunNetCom.AionTime.TimeLogService.Infrastructure.Repositories; +namespace TimeLogService.Infrastructure.Repositories; public class Repository(TunNetComAionTimeTimeLogServiceDataBaseContext context) : IRepository diff --git a/test/UnitTests/TunNetCom.AionTime.AzureDevopsService.UnitTest/WorkItemsUnitTest.cs b/test/UnitTests/TunNetCom.AionTime.AzureDevopsService.UnitTest/WorkItemsUnitTest.cs index ef45a65..4343130 100644 --- a/test/UnitTests/TunNetCom.AionTime.AzureDevopsService.UnitTest/WorkItemsUnitTest.cs +++ b/test/UnitTests/TunNetCom.AionTime.AzureDevopsService.UnitTest/WorkItemsUnitTest.cs @@ -1,6 +1,4 @@ using Microsoft.Extensions.Configuration; -using TunNetCom.AionTime.AzureDevopsService.Contracts.AzureRequestResourceModel; -using TunNetCom.AionTime.AzureDevopsService.Contracts.AzureResponceModel; namespace TunNetCom.AionTime.AzureDevopsService.UnitTest;