Class NoCacheAttribute
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: Azos.Wave.Mvc
Assembly: Azos.Wave.dll
Syntax
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, Inherited = false, AllowMultiple = false)]
public sealed class NoCacheAttribute : ActionFilterAttribute
Constructors
NoCacheAttribute()
Declaration
public NoCacheAttribute()
NoCacheAttribute(Boolean, Int32)
Declaration
public NoCacheAttribute(bool force, int order)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | force | |
System.Int32 | order |
Properties
Force
Declaration
public bool Force { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
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 |