1 implementation of INamedContextualOptions
Microsoft.Extensions.Options.Contextual (1)
Internal\ContextualOptions.cs (1)
15
internal sealed class ContextualOptions<TOptions, TContext> :
INamedContextualOptions
<TOptions, TContext>
2 references to INamedContextualOptions
Microsoft.Extensions.Options.Contextual (1)
ContextualOptionsServiceCollectionExtensions.cs (1)
31
services.TryAdd(ServiceDescriptor.Singleton(typeof(
INamedContextualOptions
<,>), typeof(ContextualOptions<,>)));
Microsoft.Extensions.Options.Contextual.Tests (1)
ContextualOptionsServiceCollectionExtensionsTests.cs (1)
25
Assert.IsType<ContextualOptions<object, WeatherForecastContext>>(provider.GetRequiredService<
INamedContextualOptions
<object, WeatherForecastContext>>());