Skip to content

PolicyDocDistributionCall

Preset-based policy document distribution client that posts PolicyDocumentConfig payloads to /v1/documents/distribute/presets.

Purpose

  • Provide the newer preset-driven distribution path alongside the older fully specified DistributionRequest model.
  • Forward policy-document payloads that let the downstream service resolve channel presets server-side.

Context

  • Namespace: SAIF.Business.Policy.Audit.ApiCalls
  • Assembly/package: SAIF.Business.Policy.Audit.ApiCalls

Public members

Member Signature Purpose
PolicyDocDistributionCall public PolicyDocDistributionCall() Constructs the client and resolves the preset-distribution API base URL plus caller identity.
DistributeApiCall public bool DistributeApiCall(PolicyDocumentConfig documentConfig) Posts a preset-driven PolicyDocumentConfig payload to /v1/documents/distribute/presets and always returns true after the request completes.

Behavioral notes

  • The method deserializes a RequestResult response but does not inspect it before returning true.

Constraints and usage notes

  • The client depends on environment setting policydocumentdistributionapi.url during construction.

Sources

  • Business\SAIF.Business.Policy.Audit.ApiCalls\PolicyDocDistributionCall.cs