Update [Obsolete] messages to mention procedures or views

Updated [Obsolete] attribute messages across several commands,
handlers, and the mapping profile to clarify that related
procedures or views should be used instead. Added [Obsolete]
to CreateOutResCommand. No functional changes made.
This commit is contained in:
2026-01-12 10:52:41 +01:00
parent e0d83c0a14
commit 9191ec4179
4 changed files with 6 additions and 5 deletions

View File

@@ -4,6 +4,7 @@ using ReC.Domain.Entities;
namespace ReC.Application.OutResults.Commands;
[Obsolete("Use the related procedure or view.")]
public class CreateOutResCommand : IRequest
{
public required long ActionId { get; set; }

View File

@@ -6,7 +6,7 @@ namespace ReC.Application.RecActionViews;
// TODO: update to inject AddedWho from the current host/user contex
public class MappingProfile : AutoMapper.Profile
{
[Obsolete("Use the related procedure.")]
[Obsolete("Use the related procedure or view.")]
public MappingProfile()
{
CreateMap<CreateRecActionCommand, RecActionDto>()

View File

@@ -6,7 +6,7 @@ using ReC.Application.Endpoints.Commands;
namespace ReC.Application.RecActions.Commands;
[Obsolete("Use the related procedure.")]
[Obsolete("Use the related procedure or view.")]
public record CreateRecActionCommand : IRequest
{
public long ProfileId { get; init; }
@@ -28,7 +28,7 @@ public record CreateRecActionCommand : IRequest
public long? EndpointAuthId { get; set; }
}
[Obsolete("Use the related procedure.")]
[Obsolete("Use the related procedure or view.")]
public class CreateRecActionCommandHandler(ISender sender, IRepository<RecAction> repo) : IRequestHandler<CreateRecActionCommand>
{
public async Task Handle(CreateRecActionCommand request, CancellationToken cancel)

View File

@@ -6,13 +6,13 @@ using ReC.Domain.Entities;
namespace ReC.Application.RecActions.Commands;
[Obsolete("Use the related procedure.")]
[Obsolete("Use the related procedure or view.")]
public class DeleteRecActionsCommand : IRequest
{
public required long ProfileId { get; init; }
}
[Obsolete("Use the related procedure.")]
[Obsolete("Use the related procedure or view.")]
public class DeleteRecActionsCommandHandler(IRepository<RecAction> repo) : IRequestHandler<DeleteRecActionsCommand>
{
public async Task Handle(DeleteRecActionsCommand request, CancellationToken cancel)