Class HostingEnvironmentBuilderExtension
This is a factory implementation of the HostingEnvironmentMiddleware class.
Inheritance
System.Object
HostingEnvironmentBuilderExtension
Namespace: Cuemon.AspNetCore
Assembly: Cuemon.AspNetCore.dll
Syntax
public static class HostingEnvironmentBuilderExtension
Methods
| Improve this DocUseHostingEnvironmentHeader(IApplicationBuilder, Action<HostingEnvironmentOptions>)
Adds a hosting environment HTTP header to the Microsoft.AspNetCore.Builder.IApplicationBuilder request execution pipeline.
Declaration
public static IApplicationBuilder UseHostingEnvironmentHeader(this IApplicationBuilder builder, Action<HostingEnvironmentOptions> setup = null)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Builder.IApplicationBuilder | builder | The type that provides the mechanisms to configure an application’s request pipeline. |
System.Action<HostingEnvironmentOptions> | setup | The CorrelationIdentifierOptions middleware which need to be configured. |
Returns
Type | Description |
---|---|
Microsoft.AspNetCore.Builder.IApplicationBuilder | A reference to this instance after the operation has completed. |