Refactored ActionService and FinalizeDocumentJob to use EnvelopeDto and ReceiverDto in place of domain entities. Updated method signatures, internal logic, and envelope receiver handling to operate on DTOs. Improved logging, removed obsolete code, and added necessary using statements for DTO namespaces. Also updated document retrieval logic and removed null-conditional operator from actionService calls.
37 lines
1.6 KiB
C#
37 lines
1.6 KiB
C#
using DigitalData.Core.Abstraction.Application.Repository;
|
|
using EnvelopeGenerator.Application.Common.Dto;
|
|
using EnvelopeGenerator.Application.Common.Dto.Receiver;
|
|
using EnvelopeGenerator.Domain.Entities;
|
|
|
|
namespace EnvelopeGenerator.ServiceHost.Jobs;
|
|
|
|
/// <summary>
|
|
/// migrate from EnvelopeGenerator.CommonServices.Services.ActionService
|
|
/// </summary>
|
|
[Obsolete("This is a placeholder service added by copilot. Migrate the actual logic from CommonServices.Jobs")]
|
|
public class ActionService(IRepository<History> histRepo)
|
|
{
|
|
[Obsolete("This is a placeholder service added by copilot. Migrate the actual logic from CommonServices.Jobs")]
|
|
public bool CreateReport(EnvelopeDto envelope, CancellationToken cancel = default)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
[Obsolete("This is a placeholder service added by copilot. Migrate the actual logic from CommonServices.Jobs")]
|
|
public bool FinalizeEnvelope(EnvelopeDto envelope, CancellationToken cancel = default)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
[Obsolete("This is a placeholder service added by copilot. Migrate the actual logic from CommonServices.Jobs")]
|
|
public bool CompleteEnvelope(EnvelopeDto envelope, CancellationToken cancel = default)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
[Obsolete("This is a placeholder service added by copilot. Migrate the actual logic from CommonServices.Jobs")]
|
|
public bool CompleteEnvelope(EnvelopeDto envelope, ReceiverDto receiver, CancellationToken cancel = default)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
} |