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.
This commit is contained in:
@@ -20,6 +20,7 @@ public class CreateOutResCommand : IRequest
|
|||||||
public string? AddedWho { get; set; }
|
public string? AddedWho { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Obsolete("Use the related procedure or view.")]
|
||||||
public class CreateOutResCommandHandler(IRepository<OutRes> repo) : IRequestHandler<CreateOutResCommand>
|
public class CreateOutResCommandHandler(IRepository<OutRes> repo) : IRequestHandler<CreateOutResCommand>
|
||||||
{
|
{
|
||||||
public Task Handle(CreateOutResCommand request, CancellationToken cancel)
|
public Task Handle(CreateOutResCommand request, CancellationToken cancel)
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ namespace ReC.Application.OutResults;
|
|||||||
// TODO: update to inject AddedWho from the current host/user contex
|
// TODO: update to inject AddedWho from the current host/user contex
|
||||||
public class MappingProfiles : AutoMapper.Profile
|
public class MappingProfiles : AutoMapper.Profile
|
||||||
{
|
{
|
||||||
|
[Obsolete("Use the related procedure or view.")]
|
||||||
public MappingProfiles()
|
public MappingProfiles()
|
||||||
{
|
{
|
||||||
CreateMap<CreateOutResCommand, OutRes>()
|
CreateMap<CreateOutResCommand, OutRes>()
|
||||||
|
|||||||
Reference in New Issue
Block a user