From 71470fc21d4df7d85228813f0c0d4f66170f0e59 Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 12 Jan 2026 10:59:24 +0100 Subject: [PATCH] Mark CreateOutResCommandHandler and MappingProfiles obsolete Both CreateOutResCommandHandler and the MappingProfiles constructor are now marked with [Obsolete] attributes, warning developers to use the related procedure or view instead. This signals that these components are deprecated and may be removed in the future. --- src/ReC.Application/OutResults/Commands/CreateOutResCommand.cs | 1 + src/ReC.Application/OutResults/MappingProfiles.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/ReC.Application/OutResults/Commands/CreateOutResCommand.cs b/src/ReC.Application/OutResults/Commands/CreateOutResCommand.cs index 98480a3..6b42ea9 100644 --- a/src/ReC.Application/OutResults/Commands/CreateOutResCommand.cs +++ b/src/ReC.Application/OutResults/Commands/CreateOutResCommand.cs @@ -20,6 +20,7 @@ public class CreateOutResCommand : IRequest public string? AddedWho { get; set; } } +[Obsolete("Use the related procedure or view.")] public class CreateOutResCommandHandler(IRepository repo) : IRequestHandler { public Task Handle(CreateOutResCommand request, CancellationToken cancel) diff --git a/src/ReC.Application/OutResults/MappingProfiles.cs b/src/ReC.Application/OutResults/MappingProfiles.cs index 26f01dc..e1600f0 100644 --- a/src/ReC.Application/OutResults/MappingProfiles.cs +++ b/src/ReC.Application/OutResults/MappingProfiles.cs @@ -6,6 +6,7 @@ namespace ReC.Application.OutResults; // TODO: update to inject AddedWho from the current host/user contex public class MappingProfiles : AutoMapper.Profile { + [Obsolete("Use the related procedure or view.")] public MappingProfiles() { CreateMap()