CachingServices.Invalidation.RecacheAsync<TReturn, TParam1> Method (Func<TParam1, Task<TReturn>>, TParam1) |
Namespace: PostSharp.Patterns.Caching
Assembly: PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 2023.0.3.0 (2023.0.3.0)
public static Task<TReturn> RecacheAsync<TReturn, TParam1>( Func<TParam1, Task<TReturn>> method, TParam1 arg1 )
Parameters
- method
- Type: System.Func<TParam1, Task<TReturn>>
A delegate of the method to evaluate. - arg1
- Type: TParam1
Value of the first parameter.
Type Parameters
- TReturn
- The return type of the method.
- TParam1
- Type of the first parameter.
Return Value
Type: Task<TReturn>A Task<TResult> that evaluates to the return value of method.