Class HostingEnvironmentOptions
Configuration options for HostingEnvironmentMiddleware.
Inheritance
System.Object
HostingEnvironmentOptions
Namespace: Cuemon.AspNetCore.Hosting
Assembly: Cuemon.AspNetCore.dll
Syntax
public class HostingEnvironmentOptions
Constructors
| Improve this DocHostingEnvironmentOptions()
Initializes a new instance of the HostingEnvironmentOptions class.
Declaration
public HostingEnvironmentOptions()
Remarks
The following table shows the initial property values for an instance of HostingEnvironmentOptions.
Property | Initial Value |
---|---|
HeaderName | X-Hosting-Environment |
SuppressHeaderPredicate | _ => false |
Properties
| Improve this DocHeaderName
Gets or sets the name of the hosting environment HTTP header.
Declaration
public string HeaderName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the hosting environment HTTP header. |
SuppressHeaderPredicate
Gets or sets the predicate that can suppress the hosting environment HTTP header.
Declaration
public Func<IHostingEnvironment, bool> SuppressHeaderPredicate { get; set; }
Property Value
Type | Description |
---|---|
System.Func<Microsoft.Extensions.Hosting.IHostingEnvironment, System.Boolean> | The function delegate that can determine if the hosting environment HTTP header should be suppressed. |