Introduced new models (`SignatureDto`, `SignatureCaptureDto`, `EnvelopeReceiverDto`) to support a signature-based workflow. Added services for handling API interactions (`SignatureService`, `AuthService`, `DocumentService`, `EnvelopeReceiverService`, `SignatureCacheService`). Enhanced configuration with `ApiOptions` and `PdfViewerOptions`. Integrated DevExpress features with custom data connection providers, in-memory report storage, and font loading utilities. Marked `AnnotationDto` and `AnnotationService` as `[Obsolete]` in favor of newer implementations. Added detailed documentation for coordinate systems, unit conversions, and usage scenarios.
25 lines
1.0 KiB
C#
25 lines
1.0 KiB
C#
using DevExpress.DataAccess.Json;
|
|
using DevExpress.DataAccess.Web;
|
|
namespace EnvelopeGenerator.WebUI.Client.Services
|
|
{
|
|
public class CustomJsonDataConnectionProviderFactory : IJsonDataConnectionProviderFactory {
|
|
public IJsonDataConnectionProviderService Create() {
|
|
return new WebDocumentViewerJsonDataConnectionProvider(CustomDataSourceWizardJsonDataConnectionStorage.GetConnections());
|
|
}
|
|
}
|
|
|
|
public class WebDocumentViewerJsonDataConnectionProvider : IJsonDataConnectionProviderService
|
|
{
|
|
readonly List<JsonDataConnection> jsonDataConnections;
|
|
public WebDocumentViewerJsonDataConnectionProvider(List<JsonDataConnection> jsonDataConnections) {
|
|
this.jsonDataConnections = jsonDataConnections;
|
|
}
|
|
public JsonDataConnection GetJsonDataConnection(string name) {
|
|
var connection = jsonDataConnections.FirstOrDefault(x => x.Name == name);
|
|
if(connection == null)
|
|
throw new InvalidOperationException();
|
|
return connection;
|
|
}
|
|
}
|
|
}
|