@@ -289,7 +289,7 @@ void CallConfigurationMethods(ILookup<string, Dictionary<string, IConfigurationA
289289 var methodInfo = SelectConfigurationMethod ( configurationMethods , method . Key , method . Value . Keys ) ;
290290
291291 if ( methodInfo != null )
292- {
292+ {
293293 var call = ( from p in methodInfo . GetParameters ( ) . Skip ( 1 )
294294 let directive = method . Value . FirstOrDefault ( s => ParameterNameMatches ( p . Name , s . Key ) )
295295 select directive . Key == null
@@ -298,9 +298,9 @@ void CallConfigurationMethods(ILookup<string, Dictionary<string, IConfigurationA
298298
299299 call . Insert ( 0 , receiver ) ;
300300 methodInfo . Invoke ( null , call . ToArray ( ) ) ;
301+ }
301302 }
302- }
303- }
303+ }
304304
305305 static bool HasImplicitValueWhenNotSpecified ( ParameterInfo paramInfo )
306306 {
@@ -318,19 +318,19 @@ object GetImplicitValueForNotSpecifiedKey(ParameterInfo parameter, MethodInfo me
318318 }
319319
320320 if ( parameter . ParameterType == typeof ( IConfiguration ) )
321- {
321+ {
322322 if ( _resolutionContext . HasAppConfiguration )
323- {
323+ {
324324 return _resolutionContext . AppConfiguration ;
325325 }
326326 if ( parameter . HasDefaultValue )
327- {
327+ {
328328 return parameter . DefaultValue ;
329329 }
330330
331- throw new InvalidOperationException ( "Trying to invoke a configuration method accepting a `IConfiguration` argument. " +
331+ throw new InvalidOperationException ( "Trying to invoke a configuration method accepting a `IConfiguration` argument. " +
332332 $ "This is not supported when only a `IConfigSection` has been provided. (method '{ methodToInvoke } ')") ;
333- }
333+ }
334334
335335 return parameter . DefaultValue ;
336336 }
0 commit comments