Table of Contents

Class SiteOptionsFactory<TOptions>

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

Type Parameters

TOptions
Inheritance
SiteOptionsFactory<TOptions>

Constructors

SiteOptionsFactory(IEnumerable<IConfigureOptions<TOptions>>, IEnumerable<IPostConfigureOptions<TOptions>>, IEnumerable<ISiteOptions<TOptions>>, IEnumerable<ISiteNamedOptions<TOptions>>, IHttpContextAccessor)

public SiteOptionsFactory(IEnumerable<IConfigureOptions<TOptions>> configureOptions, IEnumerable<IPostConfigureOptions<TOptions>> postConfigureOptions, IEnumerable<ISiteOptions<TOptions>> siteOptions, IEnumerable<ISiteNamedOptions<TOptions>> siteNamedOptions, IHttpContextAccessor accessor)

Parameters

configureOptions IEnumerable<IConfigureOptions<TOptions>>
postConfigureOptions IEnumerable<IPostConfigureOptions<TOptions>>
siteOptions IEnumerable<ISiteOptions<TOptions>>
siteNamedOptions IEnumerable<ISiteNamedOptions<TOptions>>
accessor IHttpContextAccessor

Methods

Create(string)

Returns a configured TOptions instance with the given name.

public TOptions Create(string name)

Parameters

name string

The name of the TOptions instance to create.

Returns

TOptions

The created TOptions instance with thw given name.