1 implementation of ILoadContextualOptions
Microsoft.Extensions.Options.Contextual (1)
Internal\LoadContextualOptions.cs (1)
16
internal sealed class LoadContextualOptions<TOptions> :
ILoadContextualOptions
<TOptions>
15 references to ILoadContextualOptions
Microsoft.Extensions.Options.Contextual (5)
ContextualOptionsServiceCollectionExtensions.cs (2)
64
.AddSingleton<
ILoadContextualOptions
<TOptions>>(
95
return services.AddContextualOptions().AddSingleton<
ILoadContextualOptions
<TOptions>>(
Internal\ContextualOptionsFactory.cs (3)
24
private readonly
ILoadContextualOptions
<TOptions>[] _loaders;
38
IEnumerable<
ILoadContextualOptions
<TOptions>> loaders,
82
foreach (
var
loader in _loaders)
Microsoft.Extensions.Options.Contextual.Tests (10)
ContextualOptionsFactoryTests.cs (6)
24
Enumerable.Empty<
ILoadContextualOptions
<List<string>>>(),
38
Enumerable.Empty<
ILoadContextualOptions
<List<string>>>(),
51
Enumerable.Empty<
ILoadContextualOptions
<List<string>>>(),
125
Enumerable.Empty<
ILoadContextualOptions
<List<string>>>(),
138
Enumerable.Empty<
ILoadContextualOptions
<List<string>>>(),
151
Enumerable.Empty<
ILoadContextualOptions
<List<string>>>(),
ContextualOptionsServiceCollectionExtensionsTests.cs (4)
36
var loader = (LoadContextualOptions<string>)provider.GetRequiredService<
ILoadContextualOptions
<string>>();
46
var loader = (LoadContextualOptions<string>)provider.GetRequiredService<
ILoadContextualOptions
<string>>();
58
var loader = (LoadContextualOptions<string>)provider.GetRequiredService<
ILoadContextualOptions
<string>>();
68
var loader = (LoadContextualOptions<string>)provider.GetRequiredService<
ILoadContextualOptions
<string>>();