1 implementation of IOptionsSnapshot
Microsoft.Extensions.Options (1)
OptionsManager.cs (1)
15IOptionsSnapshot<TOptions>
14 references to IOptionsSnapshot
Microsoft.AspNetCore.OpenApi.Tests (12)
Extensions\OpenApiServiceCollectionExtensionsTests.cs (12)
41var options = serviceProvider.GetRequiredService<IOptionsSnapshot<OpenApiOptions>>(); 75var options = serviceProvider.GetRequiredService<IOptionsSnapshot<OpenApiOptions>>(); 108var options = serviceProvider.GetRequiredService<IOptionsSnapshot<OpenApiOptions>>(); 141var options = serviceProvider.GetRequiredService<IOptionsSnapshot<OpenApiOptions>>(); 163var options = serviceProvider.GetRequiredService<IOptionsSnapshot<OpenApiOptions>>(); 187var 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)
27services.TryAdd(ServiceDescriptor.Scoped(typeof(IOptionsSnapshot<>), typeof(OptionsManager<>)));