Show / Hide Table of Contents

    Class UserAgentSentinelMiddleware

    Provides a HTTP User-Agent sentinel middleware implementation for ASP.NET Core.

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

    Constructors

    | Improve this Doc

    UserAgentSentinelMiddleware(RequestDelegate, IOptions<UserAgentSentinelOptions>)

    Initializes a new instance of the UserAgentSentinelMiddleware class.

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

    The delegate of the request pipeline to invoke.

    Microsoft.Extensions.Options.IOptions<UserAgentSentinelOptions> setup

    The UserAgentSentinelOptions which need to be configured.

    | Improve this Doc

    UserAgentSentinelMiddleware(RequestDelegate, Action<UserAgentSentinelOptions>)

    Initializes a new instance of the UserAgentSentinelMiddleware class.

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

    The delegate of the request pipeline to invoke.

    System.Action<UserAgentSentinelOptions> setup

    The UserAgentSentinelOptions which need to be configured.

    Methods

    | Improve this Doc

    InvokeAsync(HttpContext)

    Executes the UserAgentSentinelMiddleware.

    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.UserAgentSentinelOptions>.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