Refactor and rename to DocumentService

Renamed namespaces and projects from DocumentOperator to DocumentService, updating all references accordingly. Refactored PdfSignatureAppearanceDto and related enums to use properties with init accessors for improved clarity. Removed and re-added IPkcs11SelfTestStatusProvider with updated namespace. Simplified dependency injection by removing DocumentOperatorApplication registration. Updated appsettings.json with a specific AssetsRootPath. Incremented version numbers in project files for a new release. Introduced PdfSignatureClient and IPdfSignatureClient for PDF digital-signing operations. Updated project files to use newer Microsoft.Extensions package versions. Removed all DocumentOperator references, completing the transition to DocumentService. Added new DTOs and enums for PDF signature options and appearance.
This commit is contained in:
2026-10-25 18:49:08 +01:00
parent 5e007547b2
commit 5e7652ef88
34 changed files with 463 additions and 188 deletions

View File

@@ -1,5 +1,5 @@
using DocumentOperator.Application.Common.Configurations;
using DocumentOperator.Application.Common.Interfaces.Services;
using DocumentService.Application.Common.Configuration;
using DocumentService.Application.Common.Interfaces;
using DocumentService.Infrastructure.Crypt.Services;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Configuration;

View File

@@ -10,12 +10,12 @@
<PackageReference Include="DevExpress.Document.Processor" Version="26.1.3" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="10.0.10" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="10.0.10" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="10.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.6" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="9.0.6" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.0" />
<PackageReference Include="Microsoft.Extensions.Options" Version="9.0.6" />
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="9.0.6" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="10.0.10" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.10" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="10.0.10" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.10" />
<PackageReference Include="Microsoft.Extensions.Options" Version="10.0.10" />
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="10.0.10" />
<PackageReference Include="Microsoft.Extensions.Options.DataAnnotations" Version="9.0.6" />
<PackageReference Include="System.Security.Cryptography.Pkcs" Version="9.0.6" />
<PackageReference Include="Pkcs11Interop" Version="5.3.0" />
@@ -29,7 +29,7 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\DocumentOperator.Application\DocumentOperator.Application.csproj" />
<ProjectReference Include="..\DocumentService.Application\DocumentService.Application.csproj" />
<ProjectReference Include="..\DocumentService.Domain\DocumentService.Domain.csproj" />
</ItemGroup>

View File

@@ -1,5 +1,5 @@
using DevExpress.Pdf;
using DocumentOperator.Application.Common.Enums;
using DevExpress.Pdf;
using DocumentService.Application.Common.DTOs;
namespace DocumentService.Infrastructure.Crypt.Helper;

View File

@@ -1,9 +1,9 @@
using DevExpress.Office.DigitalSignatures;
using DevExpress.Pdf;
using DocumentService.Domain.Common.Exceptions;
using DocumentOperator.Application.Common.Configurations;
using DocumentOperator.Application.Common.Dto;
using DocumentOperator.Application.Common.Interfaces.Services;
using DocumentService.Application.Common.Configuration;
using DocumentService.Application.Common.DTOs;
using DocumentService.Application.Common.Interfaces;
using DocumentService.Infrastructure.Crypt.Helper;
using Microsoft.Extensions.Options;
using System.Formats.Asn1;

View File

@@ -1,4 +1,4 @@
using DocumentOperator.Application.Common.Configurations;
using DocumentService.Application.Common.Configuration;
using DevExpress.Office.DigitalSignatures;
using DevExpress.Pdf;

View File

@@ -1,4 +1,4 @@
using DocumentOperator.Application.Common.Configurations;
using DocumentService.Application.Common.Configuration;
namespace DocumentService.Infrastructure.Crypt.Services;

View File

@@ -1,4 +1,4 @@
using DocumentOperator.Application.Common.Configurations;
using DocumentService.Application.Common.Configuration;
using Net.Pkcs11Interop.Common;
using Net.Pkcs11Interop.HighLevelAPI;
using System.Security.Cryptography;

View File

@@ -1,5 +1,5 @@
using DocumentOperator.Application.Common.Dto;
using DocumentOperator.Application.Common.Interfaces.Services;
using DocumentService.Application.Common.DTOs;
using DocumentService.Application.Common.Interfaces;
using System.Threading;
namespace DocumentService.Infrastructure.Crypt.Services;

View File

@@ -1,4 +1,4 @@
using DocumentOperator.Application.Common.Configurations;
using DocumentService.Application.Common.Configuration;
using Net.Pkcs11Interop.Common;
using Net.Pkcs11Interop.HighLevelAPI;

View File

@@ -1,5 +1,5 @@
using DocumentOperator.Application.Common.Configurations;
using DocumentOperator.Application.Common.Dto;
using DocumentService.Application.Common.Configuration;
using DocumentService.Application.Common.DTOs;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;

View File

@@ -1,4 +1,4 @@
using DocumentOperator.Application.Common.Configurations;
using DocumentService.Application.Common.Configuration;
using System.Diagnostics;
using System.Security.Cryptography;