15 references to binderOptions
Microsoft.Extensions.Configuration.Binder.SourceGeneration (15)
Emitter\ConfigurationBinder.cs (1)
158
string binderOptionsArg = configureOptions ? $"{Identifier.GetBinderOptions}({Identifier.configureOptions})" : $"{Identifier.
binderOptions
}: null";
Emitter\CoreBindingHelpers.cs (13)
98
_writer.WriteLine($"{Identifier.BinderOptions}? {Identifier.
binderOptions
} = {Identifier.GetBinderOptions}({Identifier.configureOptions});");
224
_writer.WriteLine($"{Identifier.BinderOptions}? {Identifier.
binderOptions
} = {Identifier.GetBinderOptions}({Identifier.configureOptions});");
276
EmitStartBlock(@$"public static void {nameof(MethodsToGen_CoreBindingHelper.BindCore)}({Identifier.IConfiguration} {Identifier.configuration}, {objParameterExpression}, bool defaultValueIfNotFound, {Identifier.BinderOptions}? {Identifier.
binderOptions
}{boundThroughConstructorParam})");
336
EmitStartBlock($"public static {type.TypeRef.FullyQualifiedName} {GetInitializeMethodDisplayString(type)}({Identifier.IConfiguration} {Identifier.configuration}, {Identifier.BinderOptions}? {Identifier.
binderOptions
})");
525
public static void {{Identifier.ValidateConfigurationKeys}}(Type {{Identifier.type}}, {{TypeDisplayString.LazyHashSetOfString}} {{keysIdentifier}}, {{Identifier.IConfiguration}} {{Identifier.configuration}}, {{Identifier.BinderOptions}}? {{Identifier.
binderOptions
}})
527
if ({{Identifier.
binderOptions
}}?.{{Identifier.ErrorOnUnknownConfiguration}} is true)
586
{{Identifier.BinderOptions}} {{Identifier.
binderOptions
}} = new();
587
{{Identifier.configureOptions}}({{Identifier.
binderOptions
}});
589
if ({{Identifier.
binderOptions
}}.BindNonPublicProperties)
594
return {{Identifier.
binderOptions
}};
884
string validateMethodCallExpr = $"{Identifier.ValidateConfigurationKeys}(typeof({type.TypeRef.FullyQualifiedName}), {keyCacheFieldName}, {Identifier.configuration}, {Identifier.
binderOptions
});";
1355
string bindCoreCall = $@"{nameof(MethodsToGen_CoreBindingHelper.BindCore)}({configArgExpr}, ref {instanceToBindExpr}, defaultValueIfNotFound: {FormatDefaultValueIfNotFound()}, {Identifier.
binderOptions
}{boundThroughConstructorArg});";
1452
initExpr = $"{initMethodIdentifier}({configArgExpr}, {Identifier.
binderOptions
})";
Emitter\Helpers.cs (1)
65
public const string binderOptions = nameof(
binderOptions
);