Class CacheControlAttribute
Decorates controller classes or actions that set NoCache headers in response. By default Force = true
Inherited Members
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
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: NFX.Wave.MVC
Assembly: NFX.Wave.dll
Syntax
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, Inherited = false, AllowMultiple = false)]
public sealed class CacheControlAttribute : ActionFilterAttribute
Constructors
CacheControlAttribute()
Declaration
public CacheControlAttribute()
CacheControlAttribute(Int32)
Declaration
public CacheControlAttribute(int order)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | order |
Properties
Cacheability
Declaration
public CacheControl.Type Cacheability { get; set; }
Property Value
Type | Description |
---|---|
CacheControl.Type |
Force
Declaration
public bool Force { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
MaxAgeSec
Declaration
public int ? MaxAgeSec { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
MustRevalidate
Declaration
public bool MustRevalidate { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
NoStore
Declaration
public bool NoStore { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
NoTransform
Declaration
public bool NoTransform { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ProxyRevalidate
Declaration
public bool ProxyRevalidate { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
SharedMaxAgeSec
Declaration
public int ? SharedMaxAgeSec { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
Methods
ActionInvocationFinally(Controller, WorkContext, String, MethodInfo, Object[], ref Object)
Declaration
protected override void ActionInvocationFinally(Controller controller, WorkContext work, string action, MethodInfo method, object[] args, ref object result)
Parameters
Type | Name | Description |
---|---|---|
Controller | controller | |
WorkContext | work | |
System.String | action | |
System.Reflection.MethodInfo | method | |
System.Object[] | args | |
System.Object | result |
Overrides
AfterActionInvocation(Controller, WorkContext, String, MethodInfo, Object[], ref Object)
Declaration
protected override bool AfterActionInvocation(Controller controller, WorkContext work, string action, MethodInfo method, object[] args, ref object result)
Parameters
Type | Name | Description |
---|---|---|
Controller | controller | |
WorkContext | work | |
System.String | action | |
System.Reflection.MethodInfo | method | |
System.Object[] | args | |
System.Object | result |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
BeforeActionInvocation(Controller, WorkContext, String, MethodInfo, Object[], ref Object)
Declaration
protected override bool BeforeActionInvocation(Controller controller, WorkContext work, string action, MethodInfo method, object[] args, ref object result)
Parameters
Type | Name | Description |
---|---|---|
Controller | controller | |
WorkContext | work | |
System.String | action | |
System.Reflection.MethodInfo | method | |
System.Object[] | args | |
System.Object | result |
Returns
Type | Description |
---|---|
System.Boolean |