Remove IDocument interface and related dependencies
Decoupled `Document` and `DocumentDetailsDto` from the `IDocument` interface by removing its implementation. Eliminated the `ElementsBase` property from both classes as it was tied to the interface. Simplified the `FinalizeEnvelopeCommandHandler` constructor by removing the unused `HistoryRepo` parameter. Deleted the `IDocument` interface and its extension methods, including `IsSigned`, to reduce unnecessary abstractions and improve code maintainability.
This commit is contained in:
@@ -37,7 +37,8 @@ public record FinalizeEnvelopeCommand : EnvelopeQueryBase, IRequest
|
||||
/// <param name="Repo"></param>
|
||||
/// <param name="Sender"></param>
|
||||
/// <param name="NtfServer"></param>
|
||||
public class FinalizeEnvelopeCommandHandler(IRepository<Envelope> Repo, ISender Sender, IEnvelopeNotificationService NtfServer, ILogger<FinalizeEnvelopeCommandHandler> Logger, IRepository<History> HistoryRepo) : IRequestHandler<FinalizeEnvelopeCommand>
|
||||
/// <param name="Logger"></param>
|
||||
public class FinalizeEnvelopeCommandHandler(IRepository<Envelope> Repo, ISender Sender, IEnvelopeNotificationService NtfServer, ILogger<FinalizeEnvelopeCommandHandler> Logger) : IRequestHandler<FinalizeEnvelopeCommand>
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user