Skip to content

Commit fccb4a0

Browse files
Changed the configuration section GetInterceptors to a read only dictionary
1 parent 5b001d0 commit fccb4a0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/DotNetToolkit.Repository/Internal/ConfigFile/ConfigurationSection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public ICacheProvider GetCachingProvider()
7474
return CachingProvider.GetTypedValue();
7575
}
7676

77-
public Dictionary<Type, Func<IRepositoryInterceptor>> GetInterceptors()
77+
public IReadOnlyDictionary<Type, Func<IRepositoryInterceptor>> GetInterceptors()
7878
{
7979
return Interceptors.GetTypedValues();
8080
}

src/DotNetToolkit.Repository/Internal/ConfigFile/IConfigurationSection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ internal interface IConfigurationSection
1818

1919
ICacheProvider GetCachingProvider();
2020

21-
Dictionary<Type, Func<IRepositoryInterceptor>> GetInterceptors();
21+
IReadOnlyDictionary<Type, Func<IRepositoryInterceptor>> GetInterceptors();
2222
}
2323
}

src/DotNetToolkit.Repository/Internal/ConfigFile/Json/ConfigurationSection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public ICacheProvider GetCachingProvider()
8484
return null;
8585
}
8686

87-
public Dictionary<Type, Func<IRepositoryInterceptor>> GetInterceptors()
87+
public IReadOnlyDictionary<Type, Func<IRepositoryInterceptor>> GetInterceptors()
8888
{
8989
var interceptorsDict = new Dictionary<Type, Func<IRepositoryInterceptor>>();
9090
var section = _root.GetSection(InterceptorCollectionSectionKey);

0 commit comments

Comments
 (0)