• ASP.NET Core API
  • Core API
  • Mail API
  • Json API
  • ASP.NET Core API
  • Cuemon.AspNetCore
  • Middleware<T1, T2, T3, T4>

    Show / Hide Table of Contents
    • Cuemon.AspNetCore
      • ConfigurableMiddleware<T, TOptions>
      • ConfigurableMiddleware<T1, T2, T3, T4, T5, TOptions>
      • ConfigurableMiddleware<T1, T2, T3, T4, TOptions>
      • ConfigurableMiddleware<T1, T2, T3, TOptions>
      • ConfigurableMiddleware<T1, T2, TOptions>
      • ConfigurableMiddleware<TOptions>
      • Int32Extensions
      • Middleware
      • Middleware<T>
      • Middleware<T1, T2, T3, T4, T5>
      • Middleware<T1, T2, T3, T4>
      • Middleware<T1, T2, T3>
      • Middleware<T1, T2>
    • Cuemon.AspNetCore.Authentication
      • AuthenticationOptions
      • AuthenticationUtility
      • BasicAuthenticationBuilderExtension
      • BasicAuthenticationMiddleware
      • BasicAuthenticationOptions
      • BasicAuthenticator
      • DigestAccessAuthenticationBuilderExtension
      • DigestAccessAuthenticationMiddleware
      • DigestAccessAuthenticationOptions
      • DigestAccessAuthenticationParameters
      • DigestAccessAuthenticator
      • DigestAuthenticationUtility
      • HmacAuthenticationBuilderExtension
      • HmacAuthenticationMiddleware
      • HmacAuthenticationOptions
      • HmacAuthenticationParameters
      • HmacAuthenticator
      • UnauthorizedException
    • Cuemon.AspNetCore.Builder
      • ApplicationBuilderExtensions
      • ApplicationBuilderFactory
    • Cuemon.AspNetCore.DependencyInjection
      • ServiceCollectionExtensions
    • Cuemon.AspNetCore.Hosting
      • HostingEnvironmentMiddleware
      • HostingEnvironmentOptions
    • Cuemon.AspNetCore.Http
      • HeaderDictionaryExtensions
      • HttpExceptionDescriptor
      • HttpRequestExtensions
      • HttpResponseExtensions
      • HttpResponseMessageExtensions
      • HttpStatusCodeException
    • Cuemon.AspNetCore.Http.Headers
      • CorrelationIdentifierMiddleware
      • CorrelationIdentifierOptions
      • RequestIdentifierMiddleware
      • RequestIdentifierOptions
      • UserAgentException
      • UserAgentSentinelMiddleware
      • UserAgentSentinelOptions
    • Cuemon.AspNetCore.Http.Throttling
      • IThrottlingCache
      • MemoryThrottlingCache
      • ThrottleQuota
      • ThrottleRequest
      • ThrottlingException
      • ThrottlingRetryAfterHeader
      • ThrottlingSentinelMiddleware
      • ThrottlingSentinelOptions
    • Cuemon.AspNetCore.Infrastructure
      • ConfigurableMiddlewareCore<TOptions>
      • MiddlewareCore
    • Cuemon.AspNetCore.Integrity
      • CacheValidatorExtensions
      • ChecksumBuilderExtensions
    • Cuemon.AspNetCore.Mvc
      • ApplicationBuilderExtensions
      • Breadcrumb
      • ExceptionDescriptorResult
      • SeeOtherResult
      • ViewDataDictionaryExtensions
    • Cuemon.AspNetCore.Mvc.Configuration
      • AssemblyCacheBusting
      • AssemblyCacheBustingOptions
      • CacheBusting
      • CacheBustingOptions
      • DynamicCacheBusting
      • DynamicCacheBustingOptions
      • ICacheBusting
    • Cuemon.AspNetCore.Mvc.DependencyInjection
      • ServiceCollectionExtensions
    • Cuemon.AspNetCore.Mvc.Filters
      • ConfigurableActionFilter<TOptions>
      • ConfigurableAsyncActionFilter<TOptions>
      • ConfigurableAsyncResultFilter<TOptions>
      • ConfigurableFactoryFilter<TOptions>
    • Cuemon.AspNetCore.Mvc.Filters.Cacheable
      • CacheableAsyncResultFilterListExtensions
      • CacheableObjectResult<T, TOptions>
      • CacheableObjectResultExtensions
      • ContentBasedObjectResult<T>
      • ContentBasedOptions
      • ContentTimeBasedObjectResult<T>
      • ContentTimeBasedOptions
      • HttpCacheableFilter
      • HttpCacheableOptions
      • HttpEntityTagHeader
      • HttpEntityTagHeaderOptions
      • HttpLastModifiedHeader
      • HttpLastModifiedHeaderOptions
      • ICacheableAsyncResultFilter
      • ICacheableObjectResult
      • TimeBasedObjectResult<T>
      • TimeBasedOptions
    • Cuemon.AspNetCore.Mvc.Filters.Diagnostics
      • FaultDescriptorFilter
      • FaultDescriptorOptions
      • FaultResolver
      • FaultResolverListExtensions
      • HttpRequestEvidence
      • TimeMeasureAttribute
      • TimeMeasuringFilter
      • TimeMeasuringOptions
    • Cuemon.AspNetCore.Mvc.Filters.Headers
      • UserAgentSentinelFilter
    • Cuemon.AspNetCore.Mvc.Filters.ModelBinding
      • DisableModelBindingAttribute
    • Cuemon.AspNetCore.Mvc.Filters.Throttling
      • ThrottlingSentinelAttribute
      • ThrottlingSentinelFilter
    • Cuemon.AspNetCore.Mvc.Formatters.Json
      • DefaultJsonSerializerSettings
      • JsonMvcCoreBuilderExtensions
      • JsonSerializationInputFormatter
      • JsonSerializationMvcOptionsSetup
      • JsonSerializationOutputFormatter
      • JsonSerializerSettingsExtensions
    • Cuemon.AspNetCore.Mvc.Formatters.Json.Converters
      • JsonConverterCollectionExtensions
    • Cuemon.AspNetCore.Mvc.Formatters.Xml
      • XmlMvcCoreBuilderExtensions
      • XmlSerializationInputFormatter
      • XmlSerializationMvcOptionsSetup
      • XmlSerializationOutputFormatter
    • Cuemon.AspNetCore.Mvc.Formatters.Xml.Converters
      • XmlConverterListExtensions
    • Cuemon.AspNetCore.Mvc.Rendering
      • HtmlHelperExtensions
    • Cuemon.AspNetCore.Razor.TagHelpers
      • CdnTagHelper
      • CdnTagHelperOptions
      • CdnUriScheme
      • ImageCdnTagHelper
      • LinkCdnTagHelper
      • ScriptCdnTagHelper
      • StringExtensions

    Class Middleware<T1, T2, T3, T4>

    Provides a base-class for middleware implementation in ASP.NET Core with four dependency injected parameters.

    Inheritance
    System.Object
    MiddlewareCore
    Middleware<T1, T2, T3, T4>
    Inherited Members
    MiddlewareCore.Next
    Namespace: Cuemon.AspNetCore
    Assembly: Cuemon.AspNetCore.dll
    Syntax
    public abstract class Middleware<T1, T2, T3, T4> : MiddlewareCore
    Type Parameters
    Name Description
    T1

    The type of the first dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3, T4).

    T2

    The type of the second dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3, T4).

    T3

    The type of the third dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3, T4).

    T4

    The type of the fourth dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3, T4).

    Constructors

    | Improve this Doc

    Middleware(RequestDelegate)

    Initializes a new instance of the Middleware class.

    Declaration
    protected Middleware(RequestDelegate next)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Http.RequestDelegate next

    The delegate of the request pipeline to invoke.

    Methods

    | Improve this Doc

    InvokeAsync(HttpContext, T1, T2, T3, T4)

    Executes the Middleware<T1, T2, T3, T4>.

    Declaration
    public abstract Task InvokeAsync(HttpContext context, T1 di1, T2 di2, T3 di3, T4 di4)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Http.HttpContext context

    The context of the current request.

    T1 di1

    The first dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3, T4).

    T2 di2

    The second dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3, T4).

    T3 di3

    The third dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3, T4).

    T4 di4

    The fourth dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3, T4).

    Returns
    Type Description
    System.Threading.Tasks.Task

    A task that represents the execution of this middleware.

    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>)

    See Also

    ConfigurableMiddleware<T1, T2, T3, T4, TOptions>
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • Middleware(RequestDelegate)
    • Methods
      • InvokeAsync(HttpContext, T1, T2, T3, T4)
    • Extension Methods
    • See Also
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX