2 instantiations of BinderOptions
Microsoft.Extensions.Configuration.Binder (2)
ConfigurationBinder.cs (2)
96var options = new BinderOptions(); 141var options = new BinderOptions();
29 references to BinderOptions
ConfigurationSchemaGenerator.Tests (1)
GeneratorTests.cs (1)
695MetadataReference.CreateFromFile(typeof(BinderOptions).Assembly.Location),
Microsoft.Extensions.Configuration.Binder (17)
ConfigurationBinder.cs (17)
51public static T? Get<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(this IConfiguration configuration, Action<BinderOptions>? configureOptions) 91Action<BinderOptions>? configureOptions) 96var options = new BinderOptions(); 135public static void Bind(this IConfiguration configuration, object? instance, Action<BinderOptions>? configureOptions) 141var options = new BinderOptions(); 223private static void BindProperties(object instance, IConfiguration configuration, BinderOptions options, ParameterInfo[]? constructorParameters) 244nameof(options.ErrorOnUnknownConfiguration), nameof(BinderOptions), instance.GetType(), 274private static void ResetPropertyValue(PropertyInfo property, object instance, BinderOptions options) 290private static void BindProperty(PropertyInfo property, object instance, IConfiguration config, BinderOptions options) 326BinderOptions options, 512BinderOptions options, 626IConfiguration config, BinderOptions options) 697IConfiguration config, BinderOptions options) 767IConfiguration config, BinderOptions options) 803private static Array BindArray(Type type, IEnumerable? source, IConfiguration config, BinderOptions options) 862private static object? BindSet(Type type, IEnumerable? source, IConfiguration config, BinderOptions options) 1080BinderOptions options)
Microsoft.Extensions.Options.ConfigurationExtensions (11)
NamedConfigureFromConfigurationOptions.cs (2)
34/// <param name="configureBinder">Used to configure the <see cref="BinderOptions"/>.</param> 37public NamedConfigureFromConfigurationOptions(string? name, IConfiguration config, Action<BinderOptions>? configureBinder)
OptionsBuilderConfigurationExtensions.cs (5)
37/// <param name="configureBinder">Used to configure the <see cref="BinderOptions"/>.</param> 41public static OptionsBuilder<TOptions> Bind<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] TOptions>(this OptionsBuilder<TOptions> optionsBuilder, IConfiguration config, Action<BinderOptions>? configureBinder) where TOptions : class 56/// <param name="configureBinder">Optional. Used to configure the <see cref="BinderOptions"/>.</param> 61/// <seealso cref="Bind{TOptions}(OptionsBuilder{TOptions}, IConfiguration, Action{BinderOptions})"/> 67Action<BinderOptions>? configureBinder = null)
OptionsConfigurationServiceCollectionExtensions.cs (4)
47/// <param name="configureBinder">Used to configure the <see cref="BinderOptions"/>.</param> 51public static IServiceCollection Configure<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] TOptions>(this IServiceCollection services, IConfiguration config, Action<BinderOptions>? configureBinder) 62/// <param name="configureBinder">Used to configure the <see cref="BinderOptions"/>.</param> 66public static IServiceCollection Configure<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] TOptions>(this IServiceCollection services, string? name, IConfiguration config, Action<BinderOptions>? configureBinder)