Construct the Policy Document Distribution client¶
Resolve endpoint and caller identity for preset-based policy document distribution.
| Field | Value |
|---|---|
| Operation ID | OP-006 |
| Trigger | A caller instantiates PolicyDocDistributionCall. |
| Inputs | None. |
| Outputs | Initialized JsonHttpClient stored inside PolicyDocDistributionCall. |
| Primary components | PolicyDocDistributionCall.PolicyDocDistributionCall() |
| Entry point | Business\SAIF.Business.Policy.Audit.ApiCalls\PolicyDocDistributionCall.cs |
Steps¶
- Create
ClientInfowith application IDPremiumAudit(BR-AAC-001). - Populate machine and user identity from
EnvironmentService(BR-AAC-002). - Read environment setting
policydocumentdistributionapi.urland convert it to the baseUrifor the client (BR-AAC-003). - Construct
JsonHttpClientwith the resolved URI andClientInfoonly; this flow does not attach an explicit authenticator (BR-AAC-009).
Process flow¶
The following diagram visualizes this operation's control flow.
flowchart TD
Start(["new PolicyDocDistributionCall()"]) --> Info[Build ClientInfo]
Info --> Config[Read policydocumentdistributionapi.url]
Config --> Client[Create JsonHttpClient]
Client --> Done([Client ready])
Failure and edge-case behavior¶
- A missing or malformed
policydocumentdistributionapi.urlsetting prevents client construction. - The commented development URL override is not part of the live execution path.
Related documentation¶
Sources¶
Business\SAIF.Business.Policy.Audit.ApiCalls\PolicyDocDistributionCall.cs