Table of Contents

Class SiteOptionsManager<TOptions>

Namespace
Oqtane.Infrastructure
Assembly
Oqtane.Server.dll
public class SiteOptionsManager<TOptions> where TOptions : class, new()

Type Parameters

TOptions
Inheritance
object
SiteOptionsManager<TOptions>

Constructors

SiteOptionsManager(IOptionsFactory<TOptions>, IOptionsMonitorCache<TOptions>)

public SiteOptionsManager(IOptionsFactory<TOptions> factory, IOptionsMonitorCache<TOptions> cache)

Parameters

factory IOptionsFactory<TOptions>
cache IOptionsMonitorCache<TOptions>

Properties

Value

Gets 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 string

The name of the TOptions instance. If null, Microsoft.Extensions.Options.Options.DefaultName, which is the empty string, is used.

Returns

TOptions

The TOptions instance that matches the given name.

Reset()

public void Reset()