From e5bb61376aead87a43790fc8688a9cde494f9d9e Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 12 Jan 2026 11:07:17 +0100 Subject: [PATCH] Mark ObtainEndpointCommand and mapping as obsolete Mark ObtainEndpointCommand, its handler, and related mapping profile as [Obsolete] with guidance to use the new procedure or view-based approach. This deprecates the old command and mapping logic in favor of updated patterns. --- .../Endpoints/Commands/ObtainEndpointCommand.cs.cs | 2 ++ src/ReC.Application/Endpoints/MappingProfile.cs | 1 + 2 files changed, 3 insertions(+) diff --git a/src/ReC.Application/Endpoints/Commands/ObtainEndpointCommand.cs.cs b/src/ReC.Application/Endpoints/Commands/ObtainEndpointCommand.cs.cs index 23d32e5..c681940 100644 --- a/src/ReC.Application/Endpoints/Commands/ObtainEndpointCommand.cs.cs +++ b/src/ReC.Application/Endpoints/Commands/ObtainEndpointCommand.cs.cs @@ -7,11 +7,13 @@ using ReC.Domain.Entities; namespace ReC.Application.Endpoints.Commands; +[Obsolete("Use the related procedure or view.")] public class ObtainEndpointCommand : IRequest { public string Uri { get; init; } = null!; } +[Obsolete("Use the related procedure or view.")] public class ObtainEndpointCommandHandler(IRepository repo, IMapper mapper) : IRequestHandler { public async Task Handle(ObtainEndpointCommand request, CancellationToken cancel) diff --git a/src/ReC.Application/Endpoints/MappingProfile.cs b/src/ReC.Application/Endpoints/MappingProfile.cs index 808af03..a5c5a68 100644 --- a/src/ReC.Application/Endpoints/MappingProfile.cs +++ b/src/ReC.Application/Endpoints/MappingProfile.cs @@ -6,6 +6,7 @@ namespace ReC.Application.Endpoints; // TODO: update to inject AddedWho from the current host/user contex public class MappingProfile : AutoMapper.Profile { + [Obsolete("Use the related procedure or view.")] public MappingProfile() { CreateMap()