Show / Hide Table of Contents

    Class TimeMeasureAttribute

    Represents an attribute that is used to mark an action method for time measure profiling.

    Inheritance
    System.Object
    System.Attribute
    Microsoft.AspNetCore.Mvc.Filters.ActionFilterAttribute
    TimeMeasureAttribute
    Implements
    Microsoft.AspNetCore.Mvc.Filters.IActionFilter
    Microsoft.AspNetCore.Mvc.Filters.IAsyncActionFilter
    Microsoft.AspNetCore.Mvc.Filters.IResultFilter
    Microsoft.AspNetCore.Mvc.Filters.IAsyncResultFilter
    Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter
    Microsoft.AspNetCore.Mvc.Filters.IFilterFactory
    Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata
    Inherited Members
    Microsoft.AspNetCore.Mvc.Filters.ActionFilterAttribute.OnActionExecuting(Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext)
    Microsoft.AspNetCore.Mvc.Filters.ActionFilterAttribute.OnActionExecuted(Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext)
    Microsoft.AspNetCore.Mvc.Filters.ActionFilterAttribute.OnActionExecutionAsync(Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext, Microsoft.AspNetCore.Mvc.Filters.ActionExecutionDelegate)
    Microsoft.AspNetCore.Mvc.Filters.ActionFilterAttribute.OnResultExecuting(Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext)
    Microsoft.AspNetCore.Mvc.Filters.ActionFilterAttribute.OnResultExecuted(Microsoft.AspNetCore.Mvc.Filters.ResultExecutedContext)
    Microsoft.AspNetCore.Mvc.Filters.ActionFilterAttribute.OnResultExecutionAsync(Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext, Microsoft.AspNetCore.Mvc.Filters.ResultExecutionDelegate)
    Microsoft.AspNetCore.Mvc.Filters.ActionFilterAttribute.Order
    System.Attribute.Equals(System.Object)
    System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type, System.Boolean)
    System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type, System.Boolean)
    System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type, System.Boolean)
    System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo)
    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Module)
    System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type, System.Boolean)
    System.Attribute.GetHashCode()
    System.Attribute.IsDefaultAttribute()
    System.Attribute.IsDefined(System.Reflection.Assembly, System.Type)
    System.Attribute.IsDefined(System.Reflection.Assembly, System.Type, System.Boolean)
    System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type)
    System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type, System.Boolean)
    System.Attribute.IsDefined(System.Reflection.Module, System.Type)
    System.Attribute.IsDefined(System.Reflection.Module, System.Type, System.Boolean)
    System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type)
    System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type, System.Boolean)
    System.Attribute.Match(System.Object)
    System.Attribute.TypeId
    Namespace: Cuemon.AspNetCore.Mvc.Filters.Diagnostics
    Assembly: Cuemon.AspNetCore.Mvc.dll
    Syntax
    public class TimeMeasureAttribute : ActionFilterAttribute, IActionFilter, IAsyncActionFilter, IResultFilter, IAsyncResultFilter, IOrderedFilter, IFilterFactory, IFilterMetadata

    Constructors

    | Improve this Doc

    TimeMeasureAttribute()

    Initializes a new instance of the TimeMeasureAttribute class.

    Declaration
    public TimeMeasureAttribute()
    | Improve this Doc

    TimeMeasureAttribute(Double, TimeUnit)

    Initializes a new instance of the TimeMeasureAttribute class.

    Declaration
    public TimeMeasureAttribute(double threshold, TimeUnit thresholdTimeUnit)
    Parameters
    Type Name Description
    System.Double threshold

    The System.Double value that in combination with thresholdTimeUnit specifies the threshold of the action method.

    TimeUnit thresholdTimeUnit

    One of the enumeration values that specifies the time unit of threshold.

    Properties

    | Improve this Doc

    IsReusable

    Gets a value that indicates if the result of Microsoft.AspNetCore.Mvc.Filters.IFilterFactory.CreateInstance(System.IServiceProvider) can be reused across requests.

    Declaration
    public bool IsReusable { get; }
    Property Value
    Type Description
    System.Boolean

    true if this instance is reusable; otherwise, false.

    | Improve this Doc

    Threshold

    Gets or sets the value that in combination with ThresholdTimeUnit specifies the threshold of the action method.

    Declaration
    public double Threshold { get; set; }
    Property Value
    Type Description
    System.Double

    The threshold value of the action method.

    | Improve this Doc

    ThresholdTimeUnit

    Gets or sets one of the enumeration values that specifies the time unit of Threshold.

    Declaration
    public TimeUnit ThresholdTimeUnit { get; set; }
    Property Value
    Type Description
    TimeUnit

    The TimeUnit that defines the actual Threshold.

    Methods

    | Improve this Doc

    CreateInstance(IServiceProvider)

    Creates an instance of the executable filter.

    Declaration
    public IFilterMetadata CreateInstance(IServiceProvider serviceProvider)
    Parameters
    Type Name Description
    System.IServiceProvider serviceProvider

    The request System.IServiceProvider.

    Returns
    Type Description
    Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata

    An instance of the executable filter.

    Implements

    Microsoft.AspNetCore.Mvc.Filters.IActionFilter
    Microsoft.AspNetCore.Mvc.Filters.IAsyncActionFilter
    Microsoft.AspNetCore.Mvc.Filters.IResultFilter
    Microsoft.AspNetCore.Mvc.Filters.IAsyncResultFilter
    Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter
    Microsoft.AspNetCore.Mvc.Filters.IFilterFactory
    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.ActionFilterAttribute
    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX