From 73e2e1869241a210d68dd041f64fd18c42fc7407 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tayfun=20Y=C4=B1lmaz?= Date: Tue, 2 Dec 2025 02:07:08 +0300 Subject: [PATCH] Refactor pagination classes and update namespaces Pagination-related classes and interfaces were moved to more appropriate projects and namespaces for better separation of concerns. References and using statements were updated accordingly to reflect these changes. --- .../BBT/Aether/Application/Contracts/IReadOnlyAppService.cs | 1 + .../Aether/AspNetCore}/Pagination/IPaginationLinkGenerator.cs | 3 +-- .../Pagination/PaginationLinkGenerator.cs | 3 +-- .../AetherAspNetCoreModuleServiceCollectionExtensions.cs | 2 +- .../BBT/Aether/Pagination}/HateoasPagedList.cs | 2 +- .../BBT/Aether/Pagination}/PagedList.cs | 2 +- .../BBT/Aether/Pagination}/PaginationLinks.cs | 2 +- 7 files changed, 7 insertions(+), 8 deletions(-) rename framework/src/{BBT.Aether.Application/BBT/Aether/Domain => BBT.Aether.AspNetCore/BBT/Aether/AspNetCore}/Pagination/IPaginationLinkGenerator.cs (97%) rename framework/src/BBT.Aether.AspNetCore/BBT/Aether/{Domain => AspNetCore}/Pagination/PaginationLinkGenerator.cs (98%) rename framework/src/{BBT.Aether.Domain/BBT/Aether/Domain/Repositories => BBT.Aether.Core/BBT/Aether/Pagination}/HateoasPagedList.cs (97%) rename framework/src/{BBT.Aether.Domain/BBT/Aether/Domain/Repositories => BBT.Aether.Core/BBT/Aether/Pagination}/PagedList.cs (97%) rename framework/src/{BBT.Aether.Application/BBT/Aether/Application/Dtos => BBT.Aether.Core/BBT/Aether/Pagination}/PaginationLinks.cs (94%) diff --git a/framework/src/BBT.Aether.Application/BBT/Aether/Application/Contracts/IReadOnlyAppService.cs b/framework/src/BBT.Aether.Application/BBT/Aether/Application/Contracts/IReadOnlyAppService.cs index 7c7c9e2..7466a94 100644 --- a/framework/src/BBT.Aether.Application/BBT/Aether/Application/Contracts/IReadOnlyAppService.cs +++ b/framework/src/BBT.Aether.Application/BBT/Aether/Application/Contracts/IReadOnlyAppService.cs @@ -1,6 +1,7 @@ using System.Collections.Generic; using System.Threading.Tasks; using BBT.Aether.Application.Dtos; +using BBT.Aether.Domain; using BBT.Aether.Domain.Repositories; namespace BBT.Aether.Application; diff --git a/framework/src/BBT.Aether.Application/BBT/Aether/Domain/Pagination/IPaginationLinkGenerator.cs b/framework/src/BBT.Aether.AspNetCore/BBT/Aether/AspNetCore/Pagination/IPaginationLinkGenerator.cs similarity index 97% rename from framework/src/BBT.Aether.Application/BBT/Aether/Domain/Pagination/IPaginationLinkGenerator.cs rename to framework/src/BBT.Aether.AspNetCore/BBT/Aether/AspNetCore/Pagination/IPaginationLinkGenerator.cs index c1d7d84..00be76a 100644 --- a/framework/src/BBT.Aether.Application/BBT/Aether/Domain/Pagination/IPaginationLinkGenerator.cs +++ b/framework/src/BBT.Aether.AspNetCore/BBT/Aether/AspNetCore/Pagination/IPaginationLinkGenerator.cs @@ -1,8 +1,7 @@ using System.Collections.Generic; using BBT.Aether.Application.Dtos; -using BBT.Aether.Domain.Repositories; -namespace BBT.Aether.Domain.Pagination; +namespace BBT.Aether.AspNetCore.Pagination; /// /// Generates HATEOAS pagination links for API responses. diff --git a/framework/src/BBT.Aether.AspNetCore/BBT/Aether/Domain/Pagination/PaginationLinkGenerator.cs b/framework/src/BBT.Aether.AspNetCore/BBT/Aether/AspNetCore/Pagination/PaginationLinkGenerator.cs similarity index 98% rename from framework/src/BBT.Aether.AspNetCore/BBT/Aether/Domain/Pagination/PaginationLinkGenerator.cs rename to framework/src/BBT.Aether.AspNetCore/BBT/Aether/AspNetCore/Pagination/PaginationLinkGenerator.cs index 1234429..a4c3215 100644 --- a/framework/src/BBT.Aether.AspNetCore/BBT/Aether/Domain/Pagination/PaginationLinkGenerator.cs +++ b/framework/src/BBT.Aether.AspNetCore/BBT/Aether/AspNetCore/Pagination/PaginationLinkGenerator.cs @@ -2,10 +2,9 @@ using System.Collections.Generic; using System.Text; using BBT.Aether.Application.Dtos; -using BBT.Aether.Domain.Repositories; using Microsoft.AspNetCore.Http; -namespace BBT.Aether.Domain.Pagination; +namespace BBT.Aether.AspNetCore.Pagination; /// /// Generates HATEOAS pagination links using the current HTTP request context. diff --git a/framework/src/BBT.Aether.AspNetCore/Microsoft/Extensions/DependencyInjection/AetherAspNetCoreModuleServiceCollectionExtensions.cs b/framework/src/BBT.Aether.AspNetCore/Microsoft/Extensions/DependencyInjection/AetherAspNetCoreModuleServiceCollectionExtensions.cs index 607b5d1..4c79efc 100644 --- a/framework/src/BBT.Aether.AspNetCore/Microsoft/Extensions/DependencyInjection/AetherAspNetCoreModuleServiceCollectionExtensions.cs +++ b/framework/src/BBT.Aether.AspNetCore/Microsoft/Extensions/DependencyInjection/AetherAspNetCoreModuleServiceCollectionExtensions.cs @@ -1,8 +1,8 @@ using System; using System.IO.Compression; using System.Linq; -using BBT.Aether.Domain.Pagination; using BBT.Aether.AspNetCore.ExceptionHandling; +using BBT.Aether.AspNetCore.Pagination; using BBT.Aether.AspNetCore.Security; using BBT.Aether.AspNetCore.Tracing; using BBT.Aether.Users; diff --git a/framework/src/BBT.Aether.Domain/BBT/Aether/Domain/Repositories/HateoasPagedList.cs b/framework/src/BBT.Aether.Core/BBT/Aether/Pagination/HateoasPagedList.cs similarity index 97% rename from framework/src/BBT.Aether.Domain/BBT/Aether/Domain/Repositories/HateoasPagedList.cs rename to framework/src/BBT.Aether.Core/BBT/Aether/Pagination/HateoasPagedList.cs index a855e7e..a62e679 100644 --- a/framework/src/BBT.Aether.Domain/BBT/Aether/Domain/Repositories/HateoasPagedList.cs +++ b/framework/src/BBT.Aether.Core/BBT/Aether/Pagination/HateoasPagedList.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace BBT.Aether.Domain.Repositories; +namespace BBT.Aether; /// /// Represents a paged list optimized for HATEOAS responses. diff --git a/framework/src/BBT.Aether.Domain/BBT/Aether/Domain/Repositories/PagedList.cs b/framework/src/BBT.Aether.Core/BBT/Aether/Pagination/PagedList.cs similarity index 97% rename from framework/src/BBT.Aether.Domain/BBT/Aether/Domain/Repositories/PagedList.cs rename to framework/src/BBT.Aether.Core/BBT/Aether/Pagination/PagedList.cs index 148fe89..561a98f 100644 --- a/framework/src/BBT.Aether.Domain/BBT/Aether/Domain/Repositories/PagedList.cs +++ b/framework/src/BBT.Aether.Core/BBT/Aether/Pagination/PagedList.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace BBT.Aether.Domain.Repositories; +namespace BBT.Aether; /// /// Represents a paged list of items. diff --git a/framework/src/BBT.Aether.Application/BBT/Aether/Application/Dtos/PaginationLinks.cs b/framework/src/BBT.Aether.Core/BBT/Aether/Pagination/PaginationLinks.cs similarity index 94% rename from framework/src/BBT.Aether.Application/BBT/Aether/Application/Dtos/PaginationLinks.cs rename to framework/src/BBT.Aether.Core/BBT/Aether/Pagination/PaginationLinks.cs index 475d678..cbd9519 100644 --- a/framework/src/BBT.Aether.Application/BBT/Aether/Application/Dtos/PaginationLinks.cs +++ b/framework/src/BBT.Aether.Core/BBT/Aether/Pagination/PaginationLinks.cs @@ -1,4 +1,4 @@ -namespace BBT.Aether.Application.Dtos; +namespace BBT.Aether; /// /// HATEOAS pagination links for API responses.