Skip to content

ISimpleCertifiedMailServiceProxy

ISimpleCertifiedMailServiceProxy is the constructor-injection seam that lets SubpoenaLabelService and DocumentDeferredService in SAIF.Services request certified-mail labels without depending on SimpleCertifiedMailServiceProxy's concrete SOAP client construction. It declares Dispose() directly rather than extending IDisposable.

Purpose

  • Define the label-production contract consumed via dependency injection: default label sizing, label-only requests, and save-to-file requests (OP-WP-08).

Context

  • Namespace: SAIF.Services.Web.Proxies
  • Assembly/package: SAIF.Services.Web.Proxies (packaged in SAIF.SAIFCode.Core)

Public members

Member Signature Purpose
Dispose void Dispose() Releases the underlying SOAP client; declared directly on the interface rather than via IDisposable
GetDefaultLabelData CertifiedLabelData GetDefaultLabelData(int numberOfPages) Produces default label data sized by page count, with "ADMINISTRATION" as the default group (WP-BR-015)
SaveLabelAsGif void SaveLabelAsGif(CertifiedLabelData data, string fileName) Requests a label and saves it as a .gif file; performs no action if the remote service returns no label
GetLabelOnly CertifiedLabelData GetLabelOnly(CertifiedLabelData data) Requests a label but discards the returned image; used when only the side effect of the request matters (WP-BR-016)

Behavioral notes

  • The sole implementation in this library, SimpleCertifiedMailServiceProxy, resolves credentials from configuration when the caller's CertifiedLabelData leaves them null (WP-BR-014).

Constraints and usage notes

  • No Autofac registration for this interface exists anywhere in this repository; the composition root that wires it for SAIF.Services consumers is external**.

Note: Statements marked with ** could not be confirmed; treat as unknown until verified.

Sources

  • Services/SAIF.Services.Web.Proxies/ISimpleCertifiedMailServiceProxy.cs