1 implementation of IOptionsFactory
Microsoft.Extensions.Options (1)
OptionsFactory.cs (1)
15IOptionsFactory<TOptions>
14 references to IOptionsFactory
Aspire.StackExchange.Redis (1)
AspireRedisExtensions.cs (1)
88builder.Services.TryAddTransient<IOptionsFactory<ConfigurationOptions>, ConfigurationOptionsFactory>();
Microsoft.Extensions.ML (2)
PredictionEnginePool.cs (2)
22private readonly IOptionsFactory<PredictionEnginePoolOptions<TData, TPrediction>> _predictionEngineOptions; 29IOptionsFactory<PredictionEnginePoolOptions<TData, TPrediction>> predictionEngineOptions)
Microsoft.Extensions.ObjectPool.DependencyInjection (1)
ObjectPoolServiceCollectionExtensions.cs (1)
113var options = provider.GetService<IOptionsFactory<DependencyInjectionPoolOptions>>()?.Create(typeof(TService).FullName!) ?? new DependencyInjectionPoolOptions();
Microsoft.Extensions.Options (10)
OptionsFactory.cs (1)
11/// Implementation of <see cref="IOptionsFactory{TOptions}"/>.
OptionsManager.cs (3)
18private readonly IOptionsFactory<TOptions> _factory; 25public OptionsManager(IOptionsFactory<TOptions> factory) 49IOptionsFactory<TOptions> localFactory = _factory;
OptionsMonitor.cs (3)
21private readonly IOptionsFactory<TOptions> _factory; 31public OptionsMonitor(IOptionsFactory<TOptions> factory, IEnumerable<IOptionsChangeTokenSource<TOptions>> sources, IOptionsMonitorCache<TOptions> cache) 95IOptionsFactory<TOptions> localFactory = _factory;
OptionsServiceCollectionExtensions.cs (1)
29services.TryAdd(ServiceDescriptor.Transient(typeof(IOptionsFactory<>), typeof(OptionsFactory<>)));
UnnamedOptionsManager.cs (2)
13private readonly IOptionsFactory<TOptions> _factory; 17public UnnamedOptionsManager(IOptionsFactory<TOptions> factory) => _factory = factory;