3 references to ValidateOptions
Microsoft.Extensions.Options (1)
OptionsBuilder.cs (1)
356
Services.AddSingleton<IValidateOptions<TOptions>>(new
ValidateOptions
<TOptions>(Name, validation, failureMessage));
Microsoft.Extensions.Options.Contextual.Tests (2)
ContextualOptionsFactoryTests.cs (2)
41
new[] { new
ValidateOptions
<List<string>>(null, _ => false, "epic fail") });
54
new[] { new
ValidateOptions
<List<string>>("Foo", _ => false, "epic fail") });