13 instantiations of LoadContextualOptions
Microsoft.Extensions.Options.Contextual (2)
ContextualOptionsServiceCollectionExtensions.cs (2)
65new LoadContextualOptions<TOptions>( 96new LoadContextualOptions<TOptions>(
Microsoft.Extensions.Options.Contextual.Tests (11)
ContextualOptionsFactoryTests.cs (11)
65new LoadContextualOptions<List<string>>( 86new LoadContextualOptions<List<string>>( 106new LoadContextualOptions<List<string>>( 172new(string.Empty, (context, _) => 177new(string.Empty, async (context, cancellationToken) => 182new(string.Empty, (context, _) => 187new(string.Empty, (context, _) => 212new(string.Empty, (context, _) => new ValueTask<IConfigureContextualOptions<List<string>>>(Mock.Of<IConfigureContextualOptions<List<string>>>(MockBehavior.Strict))), 213new(string.Empty, (context, _) => throw new NotSupportedException()), 237new(string.Empty, (context, _) => new ValueTask<IConfigureContextualOptions<List<string>>>(Mock.Of<IConfigureContextualOptions<List<string>>>(MockBehavior.Strict))), 238new(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)
170var loaders = new LoadContextualOptions<List<string>>[] 210var loaders = new LoadContextualOptions<List<string>>[] 235var loaders = new LoadContextualOptions<List<string>>[]
ContextualOptionsServiceCollectionExtensionsTests.cs (8)
36var loader = (LoadContextualOptions<string>)provider.GetRequiredService<ILoadContextualOptions<string>>(); 46var loader = (LoadContextualOptions<string>)provider.GetRequiredService<ILoadContextualOptions<string>>(); 58var loader = (LoadContextualOptions<string>)provider.GetRequiredService<ILoadContextualOptions<string>>(); 68var loader = (LoadContextualOptions<string>)provider.GetRequiredService<ILoadContextualOptions<string>>();