alastairtree / LazyCache

An easy to use thread safe in-memory caching service with a simple developer friendly API for c#
https://nuget.org/packages/LazyCache
MIT License
1.72k stars 159 forks source link

IoC Registrations preferred not to be in LazyCache.AspNetCore project/namespace (LazyCacheServiceCollectionExtensions.cs) #118

Open granadacoder opened 4 years ago

granadacoder commented 4 years ago

[Use the Thumbs Up reaction to vote for this feature, and please avoid adding comments like "+1" as they create noise for others watching the issue.]

Is your feature request related to a problem? Please describe.

Hi.

https://github.com/alastairtree/LazyCache/blob/master/LazyCache.AspNetCore/LazyCacheServiceCollectionExtensions.cs

Non asp.net core applications (dotnet core console applications) could benefit from these IoC registrations.

Describe the solution you'd like

Isolate the below .cs/functionality

LazyCacheServiceCollectionExtensions.cs

to a different csproj that has no names/dependencies on "AspNetCore"

LazyCache.Extensions

or

LazyCache.DependencyInjection

or ????