Table of Contents

Class ApplicationBuilderExtensions

Namespace
Cuemon.Extensions.AspNetCore.Hosting
Assembly
Cuemon.Extensions.AspNetCore.dll

Extension methods for the Microsoft.AspNetCore.Builder.IApplicationBuilder interface.

public static class ApplicationBuilderExtensions
Inheritance
Object
ApplicationBuilderExtensions

Methods

UseHostingEnvironment(IApplicationBuilder, Action<HostingEnvironmentOptions>)

Adds a hosting environment HTTP header to the Microsoft.AspNetCore.Builder.IApplicationBuilder request execution pipeline.

public static IApplicationBuilder UseHostingEnvironment(this IApplicationBuilder builder, Action<HostingEnvironmentOptions> setup = null)

Parameters

builder IApplicationBuilder

The type that provides the mechanisms to configure an application’s request pipeline.

setup Action<HostingEnvironmentOptions>

The HostingEnvironmentOptions middleware which may be configured.

Returns

IApplicationBuilder

A reference to this instance after the operation has completed.

Remarks

Default HTTP header name is X-Hosting-Environment.