13 instantiations of LoadContextualOptions
Microsoft.Extensions.Options.Contextual (2)
ContextualOptionsServiceCollectionExtensions.cs (2)
65
new
LoadContextualOptions
<TOptions>(
96
new
LoadContextualOptions
<TOptions>(
Microsoft.Extensions.Options.Contextual.Tests (11)
ContextualOptionsFactoryTests.cs (11)
65
new
LoadContextualOptions
<List<string>>(
86
new
LoadContextualOptions
<List<string>>(
106
new
LoadContextualOptions
<List<string>>(
172
new
(string.Empty, (context, _) =>
177
new
(string.Empty, async (context, cancellationToken) =>
182
new
(string.Empty, (context, _) =>
187
new
(string.Empty, (context, _) =>
212
new
(string.Empty, (context, _) => new ValueTask<IConfigureContextualOptions<List<string>>>(Mock.Of<IConfigureContextualOptions<List<string>>>(MockBehavior.Strict))),
213
new
(string.Empty, (context, _) => throw new NotSupportedException()),
237
new
(string.Empty, (context, _) => new ValueTask<IConfigureContextualOptions<List<string>>>(Mock.Of<IConfigureContextualOptions<List<string>>>(MockBehavior.Strict))),
238
new
(string.Empty, (context, _) => new ValueTask<IConfigureContextualOptions<List<string>>>(disposeMock.Object)),
12 references to LoadContextualOptions
Microsoft.Extensions.Options.Contextual (1)
Internal\LoadContextualOptions.cs (1)
20
/// Initializes a new instance of the <see cref="
LoadContextualOptions
{TOptions}"/> class.
Microsoft.Extensions.Options.Contextual.Tests (11)
ContextualOptionsFactoryTests.cs (3)
170
var loaders = new
LoadContextualOptions
<List<string>>[]
210
var loaders = new
LoadContextualOptions
<List<string>>[]
235
var loaders = new
LoadContextualOptions
<List<string>>[]
ContextualOptionsServiceCollectionExtensionsTests.cs (8)
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>>();