Show / Hide Table of Contents

    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 Doc

    HostingEnvironmentOptions()

    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.

    PropertyInitial Value
    HeaderNameX-Hosting-Environment
    SuppressHeaderPredicate_ => false

    Properties

    | Improve this Doc

    HeaderName

    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.

    | Improve this Doc

    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.

    Extension Methods

    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, DateTime, Action<TimeBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, Func<T, DateTime>, Action<TimeBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, Byte[], Action<ContentBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, Func<T, Byte[]>, Action<ContentBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, DateTime, Byte[], Action<ContentTimeBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, Func<T, DateTime>, Func<T, Byte[]>, Action<ContentTimeBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, DateTime, Func<T, Byte[]>, Action<ContentTimeBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, Func<T, DateTime>, Byte[], Action<ContentTimeBasedOptions>)
    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX