PostSharp5.0/API Reference/Post­Sharp.​Patterns.​Caching Namespace/Caching­Services.​Invalidation Class/Invalidation Methods/Invalidation.​Invalidate Method/Caching­Services.​Invalidation.​Invalidate(TReturn, TParam1, TParam2, TParam3, TParam4) Method (Func(TParam1, TParam2, TParam3, TParam4, TReturn), TParam1, TParam2, TParam3, TParam4)

CachingServices.Invalidation.Invalidate<TReturn, TParam1, TParam2, TParam3, TParam4> Method (Func<TParam1, TParam2, TParam3, TParam4, TReturn>, TParam1, TParam2, TParam3, TParam4)

Removes a method call result from the cache giving the delegate of the method. This overload is for methods with 4 parameters.

Namespace:  PostSharp.Patterns.Caching
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
public static void Invalidate<TReturn, TParam1, TParam2, TParam3, TParam4>(
	Func<TParam1, TParam2, TParam3, TParam4, TReturn> method,
	TParam1 arg1,
	TParam2 arg2,
	TParam3 arg3,
	TParam4 arg4
)

Parameters

method
Type: System.Func<TParam1, TParam2, TParam3, TParam4, TReturn>
A delegate of the method to invalidate.
arg1
Type: TParam1
Value of the first parameter.
arg2
Type: TParam2
Value of the second parameter.
arg3
Type: TParam3
Value of the third parameter.
arg4
Type: TParam4
Value of the 4-th parameter.

Type Parameters

TReturn
The return type of the method.
TParam1
Type of the first parameter.
TParam2
Type of the second parameter.
TParam3
Type of the third parameter.
TParam4
Type of the 4-th parameter.
See Also