1 implementation of IOptionsSnapshot
Microsoft.Extensions.Options (1)
OptionsManager.cs (1)
15
IOptionsSnapshot
<TOptions>
14 references to IOptionsSnapshot
Microsoft.AspNetCore.OpenApi.Tests (12)
Extensions\OpenApiServiceCollectionExtensionsTests.cs (12)
41
var
options = serviceProvider.GetRequiredService<
IOptionsSnapshot
<OpenApiOptions>>();
75
var
options = serviceProvider.GetRequiredService<
IOptionsSnapshot
<OpenApiOptions>>();
108
var
options = serviceProvider.GetRequiredService<
IOptionsSnapshot
<OpenApiOptions>>();
141
var
options = serviceProvider.GetRequiredService<
IOptionsSnapshot
<OpenApiOptions>>();
163
var
options = serviceProvider.GetRequiredService<
IOptionsSnapshot
<OpenApiOptions>>();
187
var
options = serviceProvider.GetRequiredService<
IOptionsSnapshot
<OpenApiOptions>>();
Microsoft.Extensions.Options (2)
OptionsManager.cs (1)
10
/// Implements <see cref="IOptions{TOptions}"/> and <see cref="
IOptionsSnapshot
{TOptions}"/>.
OptionsServiceCollectionExtensions.cs (1)
27
services.TryAdd(ServiceDescriptor.Scoped(typeof(
IOptionsSnapshot
<>), typeof(OptionsManager<>)));