Interface IHmrcReferenceDataProviderFactory
- Namespace
- Payetools.ReferenceData
- Assembly
- Payetools.ReferenceData.dll
Interface for factory classes that are used to create new HMRC reference data providers that implement IHmrcReferenceDataProvider.
public interface IHmrcReferenceDataProviderFactory
Remarks
If the CreateProviderAsync method completes successfully, the Health property of the created IHmrcReferenceDataProvider provides human-readable information on the status of each tax year loaded.
Methods
CreateProviderAsync(Stream[])
Creates a new HMRC reference data that implements IHmrcReferenceDataProvider using reference data loaded from an array of streams.
Task<IHmrcReferenceDataProvider> CreateProviderAsync(Stream[] referenceDataStreams)
Parameters
referenceDataStreams
Stream[]Array of data streams to load HMRC reference data from.
Returns
- Task<IHmrcReferenceDataProvider>
An instance of a type that implements IHmrcReferenceDataProvider.