1 interface inheriting from IContextualOptions
Microsoft.Extensions.Options.Contextual (1)
INamedContextualOptions.cs (1)
14
public interface INamedContextualOptions<TOptions, TContext> :
IContextualOptions
<TOptions, TContext>
4 references to IContextualOptions
Microsoft.Extensions.Options.Contextual (1)
ContextualOptionsServiceCollectionExtensions.cs (1)
30
services.TryAdd(ServiceDescriptor.Singleton(typeof(
IContextualOptions
<,>), typeof(ContextualOptions<,>)));
Microsoft.Extensions.Options.Contextual.Tests (3)
AcceptanceTests.cs (2)
47
private readonly
IContextualOptions
<WeatherForecastOptions, WeatherForecastContext> _contextualOptions;
50
public WeatherForecastService(
IContextualOptions
<WeatherForecastOptions, WeatherForecastContext> contextualOptions)
ContextualOptionsServiceCollectionExtensionsTests.cs (1)
24
Assert.IsType<ContextualOptions<object, WeatherForecastContext>>(provider.GetRequiredService<
IContextualOptions
<object, WeatherForecastContext>>());