1 implementation of GetOrAdd
Microsoft.Extensions.Options (1)
OptionsCache.cs (1)
31public virtual TOptions GetOrAdd(string? name, Func<TOptions> createOptions)
3 references to GetOrAdd
Microsoft.Extensions.Options (3)
OptionsBuilderExtensions.cs (2)
41/// Publication uses <see cref="IOptionsMonitorCache{TOptions}.GetOrAdd"/> so an existing monitor value is not 101TOptions winner = sharedCache.GetOrAdd(
OptionsMonitor.cs (1)
96return _cache.GetOrAdd(localName, () => localFactory.Create(localName));