OptionsCache<TOptions> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caches TOptions
instances.
generic <typename TOptions>
where TOptions : classpublic ref class OptionsCache : Microsoft::Extensions::Options::IOptionsMonitorCache<TOptions>
public class OptionsCache<TOptions> : Microsoft.Extensions.Options.IOptionsMonitorCache<TOptions> where TOptions : class
type OptionsCache<'Options (requires 'Options : null)> = class
interface IOptionsMonitorCache<'Options (requires 'Options : null)>
Public Class OptionsCache(Of TOptions)
Implements IOptionsMonitorCache(Of TOptions)
Type Parameters
- TOptions
The type of options being requested.
- Inheritance
-
OptionsCache<TOptions>
- Implements
Constructors
OptionsCache<TOptions>() |
Initializes an instance of the OptionsCache<TOptions> class. |
Methods
Clear() |
Clears all options instances from the cache. |
GetOrAdd(String, Func<TOptions>) |
Gets a named options instance, or adds a new instance created with |
TryAdd(String, TOptions) |
Tries to adds a new option to the cache. |
TryRemove(String) |
Tries to remove an options instance. |
Applies to
Colaborar con nosotros en GitHub
El origen de este contenido se puede encontrar en GitHub, donde también puede crear y revisar problemas y solicitudes de incorporación de cambios. Para más información, consulte nuestra guía para colaboradores.