Open sandboxFocus

Constructor InvalidateCacheAttribute

InvalidateCacheAttribute(params string[])

Initializes a new InvalidateCacheAttribute that invalidates method of the same type as the type to which the current InvalidateCacheAttribute aspect is being applied.

Declaration
public InvalidateCacheAttribute(params string[] methodNames)
Parameters
Type Name Description
string[] methodNames

A list of names of methods to invalidate. All parameters of these methods (except those marked with NotCacheKeyAttribute) must have a parameter of the same name and compatible type in the target method of the current InvalidateCacheAttribute aspect.

InvalidateCacheAttribute(Type, params string[])

Initializes a new InvalidateCacheAttribute that invalidates method of a different type than the type to which the current InvalidateCacheAttribute aspect is being applied.

Declaration
public InvalidateCacheAttribute(Type declaringType, params string[] methodNames)
Parameters
Type Name Description
Type declaringType

The type containing the methods to invalidate.

string[] methodNames

A list of names of methods to invalidate. All parameters of these methods (except those marked with NotCacheKeyAttribute) must have a parameter of the same name and compatible type in the target method of the current InvalidateCacheAttribute aspect.

InvalidateCacheAttribute(PortableFormatterConstructorContext)

Declaration
protected InvalidateCacheAttribute(PortableFormatterConstructorContext context)
Parameters
Type Name Description
PortableFormatterConstructorContext context