Table of Contents

Class SettingsSpaMiddleware

Namespace
OpenSettings.AspNetCore.Spa
Assembly
OpenSettings.AspNetCore.Spa.dll

Middleware responsible for serving static files for the Open Settings Spa.

public class SettingsSpaMiddleware
Inheritance
SettingsSpaMiddleware
Inherited Members

Constructors

SettingsSpaMiddleware(RequestDelegate, SettingsSpaOptions, OpenSettingsMemoryCache, ControllerOptions, OpenSettingsConfiguration, ProviderInfo, IHostingEnvironment, ILoggerFactory)

Initializes a new instance of the SettingsSpaMiddleware class.

public SettingsSpaMiddleware(RequestDelegate requestDelegate, SettingsSpaOptions options, OpenSettingsMemoryCache openSettingsMemoryCache, ControllerOptions controllerOptions, OpenSettingsConfiguration openSettingsConfiguration, ProviderInfo providerInfo, IHostingEnvironment hostingEnv, ILoggerFactory loggerFactory)

Parameters

requestDelegate RequestDelegate

The request delegate.

options SettingsSpaOptions

Spa options.

openSettingsMemoryCache OpenSettingsMemoryCache

In-memory cache for Open Settings.

controllerOptions ControllerOptions

Controller options.

openSettingsConfiguration OpenSettingsConfiguration

Configuration for Open Settings.

providerInfo ProviderInfo

Provider information.

hostingEnv IHostingEnvironment

Web hosting environment.

loggerFactory ILoggerFactory

Factory for creating loggers.

Methods

Invoke(HttpContext)

public Task Invoke(HttpContext httpContext)

Parameters

httpContext HttpContext

Returns

Task