PostSharp5.0/API Reference/Post­Sharp.​Patterns.​Caching Namespace/Caching­Services.​Invalidation Class/Invalidation Methods/Invalidation.​Recache­Async Method/Caching­Services.​Invalidation.​Recache­Async(TReturn, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10) Method (Func(TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, Task(TReturn)), TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10)

CachingServices.Invalidation.RecacheAsync<TReturn, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10> Method (Func<TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, Task<TReturn>>, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10)

Asynchronously evaluates a method, ignoring the currently cached value, and replaces the corresponding cache item with the new return value of the method. This overload is for methods with 10 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 Task<TReturn> RecacheAsync<TReturn, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10>(
	Func<TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, Task<TReturn>> method,
	TParam1 arg1,
	TParam2 arg2,
	TParam3 arg3,
	TParam4 arg4,
	TParam5 arg5,
	TParam6 arg6,
	TParam7 arg7,
	TParam8 arg8,
	TParam9 arg9,
	TParam10 arg10
)

Parameters

method
Type: System.Func<TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, Task<TReturn>>
A delegate of the method to evaluate.
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.
arg5
Type: TParam5
Value of the 5-th parameter.
arg6
Type: TParam6
Value of the 6-th parameter.
arg7
Type: TParam7
Value of the 7-th parameter.
arg8
Type: TParam8
Value of the 8-th parameter.
arg9
Type: TParam9
Value of the 9-th parameter.
arg10
Type: TParam10
Value of the 10-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.
TParam5
Type of the 5-th parameter.
TParam6
Type of the 6-th parameter.
TParam7
Type of the 7-th parameter.
TParam8
Type of the 8-th parameter.
TParam9
Type of the 9-th parameter.
TParam10
Type of the 10-th parameter.

Return Value

Type: Task<TReturn>
A Task<TResult> that evaluates to the return value of method.
See Also