Table of Contents

Class PluginCardReplacementService

Namespace
SEBT.Portal.Infrastructure.StateConnector
Assembly
SEBT.Portal.Infrastructure.dll

Adapter that fulfills the Core IStateCardReplacementService port by delegating to the loaded state plugin's card replacement service. Maps Core models to plugin contract models (and back) at the boundary.

public class PluginCardReplacementService : IStateCardReplacementService
Inheritance
object
PluginCardReplacementService
Implements

Constructors

PluginCardReplacementService(ICardReplacementService)

Adapter that fulfills the Core IStateCardReplacementService port by delegating to the loaded state plugin's card replacement service. Maps Core models to plugin contract models (and back) at the boundary.

public PluginCardReplacementService(ICardReplacementService pluginCardReplacementService)

Parameters

pluginCardReplacementService ICardReplacementService

Methods

RequestCardReplacementAsync(CardReplacementRequest, CancellationToken)

Initiates a replacement card request for one or more cases in the identified household. Implementations are expected to update any cooldown timestamp the state tracks so subsequent portal reads reflect the new request time.

public Task<CardReplacementResult> RequestCardReplacementAsync(CardReplacementRequest request, CancellationToken cancellationToken = default)

Parameters

request CardReplacementRequest

Household identifier, case IDs, and replacement reason.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<CardReplacementResult>

Result indicating success, policy rejection, or backend error.