Extract ASP.NET-related code to a separate project/NuGet package #117
Labels
good first issue
groomed
The issue has been groomed and should be in a good shape.
hacktoberfest
help wanted
refactoring
up-for-grabs
Motivation
Microsoft.Extensions.Options
carries quite a lot of dependencies. In case, the consumer of our SDK uses the it in a non-ASP.NET project, they might be unnecessary.According to @davidfowl, "Microsoft.Extensions.* is intended for use outside of ASP.NET Core."
Let's wait for the result of the discussion and also the result of the StackOverflow thread before we go any further.
Suggested approach
KenticoCloud.Delivery.AspNet
:DeliveryClient(IOptions<DeliveryOptions>...
to get rid of theMicrosoft.Extensions.Options
reference.Microsoft.Extensions.Configuration
,Microsoft.Extensions.Configuration.Binder
references.private readonly Dictionary<string, StringValues> _queryParameters
withprivate readonly Dictionary<string, string> _queryParameters
to get rid of theMicrosoft.Extensions.Primitives
reference.The text was updated successfully, but these errors were encountered: