• ASP.NET Core API
  • Core API
  • Mail API
  • Json API
  • ASP.NET Core API
  • Cuemon.AspNetCore.Mvc
  • ApplicationBuilderExtensions

    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 ApplicationBuilderExtensions

    Extension methods for the Microsoft.AspNetCore.Builder.IApplicationBuilder interface.

    Inheritance
    System.Object
    ApplicationBuilderExtensions
    Namespace: Cuemon.AspNetCore.Mvc
    Assembly: Cuemon.AspNetCore.Mvc.dll
    Syntax
    public static class ApplicationBuilderExtensions

    Methods

    | Improve this Doc

    UseWhen(IApplicationBuilder, Boolean, Action<IApplicationBuilder>)

    Conditionally creates a branch in the request pipeline that is rejoined to the main pipeline.

    Declaration
    public static IApplicationBuilder UseWhen(this IApplicationBuilder app, bool condition, Action<IApplicationBuilder> configurator)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Builder.IApplicationBuilder app

    The Microsoft.AspNetCore.Builder.IApplicationBuilder instance.

    System.Boolean condition

    if set to true, the configurator is invoked.

    System.Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> configurator

    The delegate to invoke when condition evaluates true.

    Returns
    Type Description
    Microsoft.AspNetCore.Builder.IApplicationBuilder

    The Microsoft.AspNetCore.Builder.IApplicationBuilder instance.

    | Improve this Doc

    UseWhen(IApplicationBuilder, Func<HttpContext, Boolean>, Action<IApplicationBuilder>)

    Conditionally creates a branch in the request pipeline that is rejoined to the main pipeline.

    Declaration
    public static IApplicationBuilder UseWhen(this IApplicationBuilder app, Func<HttpContext, bool> condition, Action<IApplicationBuilder> configurator)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Builder.IApplicationBuilder app

    The Microsoft.AspNetCore.Builder.IApplicationBuilder instance.

    System.Func<Microsoft.AspNetCore.Http.HttpContext, System.Boolean> condition

    The condition.

    System.Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> configurator

    The configuration.

    Returns
    Type Description
    Microsoft.AspNetCore.Builder.IApplicationBuilder

    The Microsoft.AspNetCore.Builder.IApplicationBuilder instance.

    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • UseWhen(IApplicationBuilder, Boolean, Action<IApplicationBuilder>)
      • UseWhen(IApplicationBuilder, Func<HttpContext, Boolean>, Action<IApplicationBuilder>)
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX