nhibernate / NHibernate-Caches

NHibernate Cache Providers
http://nhibernate.info/
GNU Lesser General Public License v2.1
40 stars 31 forks source link

`ConfigurationProvider.Current` shouldn't depend on `IConfigurationSectionHandler` from `System.Configuration.ConfigurationManager` #120

Open bahusoid opened 1 year ago

bahusoid commented 1 year ago

https://github.com/nhibernate/NHibernate-Caches/blob/196296f0b8207f8d977de209d5cca97250ec9e58/NHibernate.Caches.Common/ConfigurationProviderBase.cs#L28-L32

It's quite strange that user custom implementation not using xml still needs dependency on this xml related class from nuget package:

public class CoreDistributedCacheCustomConfigProvider : ConfigurationProviderBase<CacheConfig,CoreDistributedCacheSectionHandler>