Interface IApiRequestAdapter<TRequest, TApiResponse>
- Namespace
- Visus.AddressValidation.Adapters
- Assembly
- Visus.AddressValidation.dll
Defines an adapter that translates an address validation request into an API-specific request. It sends the request to the provider and returns the API response.
public interface IApiRequestAdapter<in TRequest, TApiResponse> where TRequest : AbstractAddressValidationRequest where TApiResponse : class
Type Parameters
TRequestThe type of the address validation request, which must derive from AbstractAddressValidationRequest.
TApiResponseThe type of API response the provider returns.
Methods
ExecuteAsync(TRequest, CancellationToken)
Executes the address validation request against the provider and returns the API response.
Task<TApiResponse?> ExecuteAsync(TRequest request, CancellationToken cancellationToken)
Parameters
requestTRequestThe address validation request to execute.
cancellationTokenCancellationTokenA token that cancels the operation.