'Missing Parameter from constructor in your C# Example code

I am attempting to update our C# integration oAuth2 as per Xero documentation.

I am attempting to use the sample code provided here:

https://github.com/XeroAPI/Xero-NetStandard/tree/oauth2/Xero.NetStandard.OAuth2Client

However, this sample code has a missing variable in the constructor: C# IHttpClientFactory

When I attempt to implement this sample code I get this compilation error:

There is no argument given that responds to the formal parameter IHttpClientFactory of XeroClient.XeroClient(XeroConfiguration, IHttpClientFactory)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source