Class SiteOptionsManager<TOptions>
- Namespace
- Oqtane.Infrastructure
- Assembly
- Oqtane.Server.dll
public class SiteOptionsManager<TOptions> where TOptions : class, new()
Type Parameters
TOptions
- Inheritance
-
objectSiteOptionsManager<TOptions>
Constructors
SiteOptionsManager(IOptionsFactory<TOptions>, IOptionsMonitorCache<TOptions>)
public SiteOptionsManager(IOptionsFactory<TOptions> factory, IOptionsMonitorCache<TOptions> cache)
Parameters
factory
IOptionsFactory<TOptions>cache
IOptionsMonitorCache<TOptions>
Properties
Value
The default configured TOptions
instance
public TOptions Value { get; }
Property Value
- TOptions
Methods
Get(string)
Returns a configured TOptions
instance with the given name
.
public virtual TOptions Get(string name)
Parameters
name
stringThe name of the
TOptions
instance, if nullMicrosoft.Extensions.Options.Options.DefaultName is used.
Returns
- TOptions
The
TOptions
instance that matches the givenname
.
Reset()
public void Reset()