Table of Contents

Class AddressService

Namespace
Integrations.Application.Tax
Assembly
Integrations.Application.dll

Address validation and geocoding. Results are cached for a day: job sites are validated repeatedly.

public sealed class AddressService
Inheritance
AddressService
Inherited Members

Constructors

AddressService(IAddressProvider, IMemoryCache)

Address validation and geocoding. Results are cached for a day: job sites are validated repeatedly.

public AddressService(IAddressProvider provider, IMemoryCache cache)

Parameters

provider IAddressProvider
cache IMemoryCache

Methods

ValidateAsync(AddressDto, CancellationToken)

Validates and geocodes the address through the address provider.

public Task<AddressValidationDto> ValidateAsync(AddressDto address, CancellationToken ct)

Parameters

address AddressDto
ct CancellationToken

Returns

Task<AddressValidationDto>