Updated PHASENPLAN.md and ROADMAP.md to reflect the new feature order, making "ExtractSwissQrCode" Feature 2 and renumbering previous Features 2-5 to 3-6. Added detailed steps, endpoints, and acceptance criteria for the new feature. Implemented `ISwissQrCodeProcessor` interface with `DevExpressSwissQrCodeProcessor` for extracting and parsing Swiss QR Codes using DevExpress and Codecrete libraries. Registered the new service in DependencyInjection.cs. Introduced `SwissQrCodeData` value object and `SwissQrCodeNotFoundException` for domain modeling and error handling. Updated project dependencies to include libraries for QR code processing. Adjusted existing feature descriptions and steps to align with the new feature order.
27 lines
935 B
C#
27 lines
935 B
C#
using DocumentOperator.Application.Common.Interfaces;
|
|
using DocumentOperator.Infrastructure.Services.PdfProcessing;
|
|
using DocumentOperator.Infrastructure.Services.QrCodeProcessing;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace DocumentOperator.Infrastructure;
|
|
|
|
/// <summary>
|
|
/// Dependency Injection configuration for Infrastructure Layer
|
|
/// </summary>
|
|
public static class DependencyInjection
|
|
{
|
|
/// <summary>
|
|
/// Registers Infrastructure Layer services (DevExpress, File Storage, etc.)
|
|
/// </summary>
|
|
public static IServiceCollection AddInfrastructure(this IServiceCollection services)
|
|
{
|
|
// PDF Processing Service (DevExpress)
|
|
services.AddScoped<IPdfProcessor, DevExpressPdfProcessor>();
|
|
|
|
// Swiss QR Code Processing Service (DevExpress + Codecrete + ZXing)
|
|
services.AddScoped<ISwissQrCodeProcessor, DevExpressSwissQrCodeProcessor>();
|
|
|
|
return services;
|
|
}
|
|
}
|