Mark DeleteOutResCommand and related classes as obsolete

Added the [Obsolete("Use the related procedure or view.")] attribute to DeleteOutResCommand, its handler, and its validator to indicate these should no longer be used and to guide consumers toward the recommended procedure or view.
This commit is contained in:
2026-01-12 11:00:21 +01:00
parent 71470fc21d
commit 6720e66b23
2 changed files with 3 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ namespace ReC.Application.OutResults.Commands;
/// Deletion can be performed by providing either an <see cref="ActionId"/> or a <see cref="ProfileId"/>.
/// At least one of these properties must be set for the operation to proceed.
/// </remarks>
[Obsolete("Use the related procedure or view.")]
public record DeleteOutResCommand : IRequest
{
/// <summary>
@@ -27,6 +28,7 @@ public record DeleteOutResCommand : IRequest
/// <summary>
/// Handles the execution of the <see cref="DeleteOutResCommand"/>.
/// </summary>
[Obsolete("Use the related procedure or view.")]
public class DeleteOutResCommandHandler(IRepository<OutRes> repo) : IRequestHandler<DeleteOutResCommand>
{
/// <summary>

View File

@@ -2,6 +2,7 @@ using FluentValidation;
namespace ReC.Application.OutResults.Commands;
[Obsolete("Use the related procedure or view.")]
public class DeleteOutResCommandValidator : AbstractValidator<DeleteOutResCommand>
{
public DeleteOutResCommandValidator()