Show / Hide Table of Contents

    Class CorrelationIdentifierMiddleware

    Provides a Correlation ID middleware implementation for ASP.NET Core.

    Inheritance
    System.Object
    MiddlewareCore
    ConfigurableMiddlewareCore<CorrelationIdentifierOptions>
    ConfigurableMiddleware<CorrelationIdentifierOptions>
    CorrelationIdentifierMiddleware
    Implements
    IConfigurable<CorrelationIdentifierOptions>
    Inherited Members
    ConfigurableMiddlewareCore<CorrelationIdentifierOptions>.Options
    MiddlewareCore.Next
    Namespace: Cuemon.AspNetCore.Http.Headers
    Assembly: Cuemon.AspNetCore.dll
    Syntax
    public class CorrelationIdentifierMiddleware : ConfigurableMiddleware<CorrelationIdentifierOptions>, IConfigurable<CorrelationIdentifierOptions>

    Constructors

    | Improve this Doc

    CorrelationIdentifierMiddleware(RequestDelegate, IOptions<CorrelationIdentifierOptions>)

    Initializes a new instance of the CorrelationIdentifierMiddleware class.

    Declaration
    public CorrelationIdentifierMiddleware(RequestDelegate next, IOptions<CorrelationIdentifierOptions> setup)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Http.RequestDelegate next

    The delegate of the request pipeline to invoke.

    Microsoft.Extensions.Options.IOptions<CorrelationIdentifierOptions> setup

    The CorrelationIdentifierOptions which need to be configured.

    | Improve this Doc

    CorrelationIdentifierMiddleware(RequestDelegate, Action<CorrelationIdentifierOptions>)

    Initializes a new instance of the CorrelationIdentifierMiddleware class.

    Declaration
    public CorrelationIdentifierMiddleware(RequestDelegate next, Action<CorrelationIdentifierOptions> setup)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Http.RequestDelegate next

    The delegate of the request pipeline to invoke.

    System.Action<CorrelationIdentifierOptions> setup

    The CorrelationIdentifierOptions which need to be configured.

    Fields

    | Improve this Doc

    HttpContextItemsKey

    The key from where the Correlation ID is stored throughout the request scope.

    Declaration
    public const string HttpContextItemsKey = "Cuemon.AspNetCore.Http.Headers.CorrelationIdentifierMiddleware"
    Field Value
    Type Description
    System.String

    Methods

    | Improve this Doc

    InvokeAsync(HttpContext)

    Executes the CorrelationIdentifierMiddleware.

    Declaration
    public override Task InvokeAsync(HttpContext context)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Http.HttpContext context

    The context of the current request.

    Returns
    Type Description
    System.Threading.Tasks.Task

    A task that represents the execution of this middleware.

    Overrides
    Cuemon.AspNetCore.ConfigurableMiddleware<Cuemon.AspNetCore.Http.Headers.CorrelationIdentifierOptions>.InvokeAsync(Microsoft.AspNetCore.Http.HttpContext)

    Implements

    IConfigurable<TOptions>

    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