Endpunkt für die Ablehnung von Umschlägen hinzugefügt.

This commit is contained in:
Developer 02
2024-06-04 16:11:30 +02:00
parent 34b3c46720
commit 7697939d7e
5 changed files with 75 additions and 52 deletions

View File

@@ -1,14 +0,0 @@
using EnvelopeGenerator.Application.Contracts;
using EnvelopeGenerator.Application.Services;
using Microsoft.Extensions.DependencyInjection;
using static EnvelopeGenerator.Common.Constants;
namespace EnvelopeGenerator.Application
{
public static class DIExtensions
{
public static IServiceCollection AddHistoryService(this IServiceCollection services, Func<EnvelopeStatus, ReferenceType>? classifier = null) => services
.AddSingleton(classifier ?? EnvelopeHistoryService.DefaultClassifier)
.AddScoped<IEnvelopeHistoryService, EnvelopeHistoryService>();
}
}