Table of Contents

HostingEnvironmentMiddleware Constructor

Definition

HostingEnvironmentMiddleware(RequestDelegate, IOptions<HostingEnvironmentOptions>)

Initializes a new instance of the HostingEnvironmentMiddleware class.

public HostingEnvironmentMiddleware(RequestDelegate next, IOptions<HostingEnvironmentOptions> setup)

Parameters

next RequestDelegate

The delegate of the request pipeline to invoke.

setup IOptions<HostingEnvironmentOptions>

The HostingEnvironmentOptions which need to be configured.

HostingEnvironmentMiddleware(RequestDelegate, Action<HostingEnvironmentOptions>)

Initializes a new instance of the HostingEnvironmentMiddleware class.

public HostingEnvironmentMiddleware(RequestDelegate next, Action<HostingEnvironmentOptions> setup)

Parameters

next RequestDelegate

The delegate of the request pipeline to invoke.

setup Action<HostingEnvironmentOptions>

The HostingEnvironmentOptions which need to be configured.