This pull request lets the service factories inject the IShopifyDomainUtility directly into the services they create via an internal constructor. The constructor is internal for now because I'm unsure of the design at the moment and plan to iterate on it, so I don't want anyone to rely on it yet.
The PR also adds an overload for the DI package's AddShopifySharpUtilities with a configuration action for customizing the utilities added to DI:
services.AddShopifySharpUtilities(options =>
{
options.DomainUtility = new MyDomainUtility();
options.RequestValidationUtility = new MyRequestValidationUtility();
options.OauthUtility = new MyOauthUtility();
});
This pull request lets the service factories inject the
IShopifyDomainUtility
directly into the services they create via an internal constructor. The constructor is internal for now because I'm unsure of the design at the moment and plan to iterate on it, so I don't want anyone to rely on it yet.The PR also adds an overload for the DI package's
AddShopifySharpUtilities
with a configuration action for customizing the utilities added to DI: