nozzlegear / ShopifySharp

ShopifySharp is a .NET library that helps developers easily authenticate with and manage Shopify stores.
https://nozzlegear.com/shopify-development-handbook
MIT License
747 stars 309 forks source link

If a service class is deprecated, the service factory should be deprecated as well #1077

Open nozzlegear opened 3 months ago

nozzlegear commented 3 months ago

To be sure that developers notice deprecation warnings, I'd like the service factory generator to mark a service factory as deprecated if its service is deprecated. For example, the CountryService was just deprecated, but neither the CountryServiceFactory and ICountryServiceFactory interface are deprecated. If a developer only uses those in their application, then they may not know about the deprecation until the factories simply disappear in a future release.