Class PluginAddressUpdateService
- Namespace
- SEBT.Portal.Infrastructure.StateConnector
- Assembly
- SEBT.Portal.Infrastructure.dll
Adapter that fulfills the Core IStateAddressUpdateService port by
delegating to the loaded state plugin's address update service. Maps Core models
(including the household Address) to plugin contract models (and back) at
the boundary.
public class PluginAddressUpdateService : IStateAddressUpdateService
- Inheritance
-
objectPluginAddressUpdateService
- Implements
Constructors
PluginAddressUpdateService(IAddressUpdateService)
Adapter that fulfills the Core IStateAddressUpdateService port by
delegating to the loaded state plugin's address update service. Maps Core models
(including the household Address) to plugin contract models (and back) at
the boundary.
public PluginAddressUpdateService(IAddressUpdateService pluginAddressUpdateService)
Parameters
pluginAddressUpdateServiceIAddressUpdateService
Methods
UpdateAddressAsync(AddressUpdateRequest, CancellationToken)
Persists a mailing address update for the identified household.
public Task<AddressUpdateResult> UpdateAddressAsync(AddressUpdateRequest request, CancellationToken cancellationToken = default)
Parameters
requestAddressUpdateRequestThe address update request containing household identifier and new address.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<AddressUpdateResult>
Result indicating success, policy rejection, or backend error.