File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -67,11 +67,6 @@ public static IServiceCollection AddEnyimMemcached(
67
67
throw new ArgumentNullException ( nameof ( configurationSection ) ) ;
68
68
}
69
69
70
- if ( ! configurationSection . Exists ( ) )
71
- {
72
- throw new ArgumentNullException ( $ "{ configurationSection . Key } in appsettings.json") ;
73
- }
74
-
75
70
return services . AddEnyimMemcachedInternal (
76
71
s => s . Configure < MemcachedClientOptions > ( configurationSection ) , asDistributedCache ) ;
77
72
}
@@ -93,10 +88,6 @@ public static IServiceCollection AddEnyimMemcached(
93
88
}
94
89
95
90
var section = configuration . GetSection ( sectionKey ) ;
96
- if ( ! section . Exists ( ) )
97
- {
98
- throw new ArgumentNullException ( $ "{ sectionKey } in appsettings.json") ;
99
- }
100
91
101
92
return services . AddEnyimMemcachedInternal (
102
93
s => s . Configure < MemcachedClientOptions > ( section ) , asDistributedCache ) ;
@@ -157,12 +148,6 @@ public static IServiceCollection AddEnyimMemcached<T>(
157
148
throw new ArgumentNullException ( nameof ( configuration ) ) ;
158
149
}
159
150
160
- var section = configuration . GetSection ( sectionKey ) ;
161
- if ( ! section . Exists ( ) )
162
- {
163
- throw new ArgumentNullException ( $ "{ sectionKey } in appsettings.json") ;
164
- }
165
-
166
151
return services . AddEnyimMemcached < T > (
167
152
s => s . Configure < MemcachedClientOptions > ( configuration . GetSection ( sectionKey ) ) ) ;
168
153
}
You can’t perform that action at this time.
0 commit comments