This pull request fixes a bug with the ShopifyOauthUtility.RefreshAccessTokenAsync method, which was erroneously disposing the static HttpClient in ShopifySharp's InternalHttpClientFactory. If the developer did not supply their own IHttpClientFactory to the ShopifyService via ShopifyService.SetHttpClientFactory, then any service that attempted to call the Shopify API after the disposal would throw an ObjectDisposedException for the lifetime of the application.
This pull request fixes a bug with the
ShopifyOauthUtility.RefreshAccessTokenAsync
method, which was erroneously disposing the static HttpClient in ShopifySharp's InternalHttpClientFactory. If the developer did not supply their own IHttpClientFactory to the ShopifyService viaShopifyService.SetHttpClientFactory
, then any service that attempted to call the Shopify API after the disposal would throw anObjectDisposedException
for the lifetime of the application.See #1005 for more info.