5 references to AddContextualOptions
Microsoft.Extensions.Options.Contextual (2)
ContextualOptionsServiceCollectionExtensions.cs (2)
63.AddContextualOptions() 95return services.AddContextualOptions().AddSingleton<ILoadContextualOptions<TOptions>>(
Microsoft.Extensions.Options.Contextual.Tests (3)
AcceptanceTests.cs (1)
87.AddContextualOptions()
ContextualOptionsServiceCollectionExtensionsTests.cs (2)
20Assert.Throws<ArgumentNullException>(() => ((IServiceCollection)null!).AddContextualOptions()); 22using var provider = new ServiceCollection().AddContextualOptions().BuildServiceProvider();