Show / Hide Table of Contents

    Class FaultDescriptorFilter

    A filter that, after an action has faulted, provides developer friendly information about an System.Exception along with a correct System.Net.HttpStatusCode. Implements the Microsoft.AspNetCore.Mvc.Filters.IExceptionFilter

    Inheritance
    System.Object
    Configurable<FaultDescriptorOptions>
    FaultDescriptorFilter
    Implements
    IConfigurable<FaultDescriptorOptions>
    Microsoft.AspNetCore.Mvc.Filters.IExceptionFilter
    Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata
    Inherited Members
    Configurable<FaultDescriptorOptions>.Options
    Namespace: Cuemon.AspNetCore.Mvc.Filters.Diagnostics
    Assembly: Cuemon.AspNetCore.Mvc.dll
    Syntax
    public class FaultDescriptorFilter : Configurable<FaultDescriptorOptions>, IConfigurable<FaultDescriptorOptions>, IExceptionFilter, IFilterMetadata

    Constructors

    | Improve this Doc

    FaultDescriptorFilter(IOptions<FaultDescriptorOptions>)

    Initializes a new instance of the FaultDescriptorFilter class.

    Declaration
    public FaultDescriptorFilter(IOptions<FaultDescriptorOptions> setup)
    Parameters
    Type Name Description
    Microsoft.Extensions.Options.IOptions<FaultDescriptorOptions> setup

    The FaultDescriptorOptions which need to be configured.

    Methods

    | Improve this Doc

    OnException(ExceptionContext)

    Called after an action has thrown an System.Exception.

    Declaration
    public virtual void OnException(ExceptionContext context)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Mvc.Filters.ExceptionContext context

    The Microsoft.AspNetCore.Mvc.Filters.ExceptionContext.

    Implements

    IConfigurable<TOptions>
    Microsoft.AspNetCore.Mvc.Filters.IExceptionFilter
    Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata

    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

    Microsoft.AspNetCore.Mvc.Filters.IExceptionFilter
    ExceptionDescriptor
    FaultDescriptorOptions
    RequestIdentifierMiddleware
    CorrelationIdentifierMiddleware
    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX