PostSharp5.0/API Reference/Post­Sharp.​Patterns.​Caching Namespace/Caching­Services.​Invalidation Class/Invalidation Methods/Invalidation.​Invalidate­Async Method/Caching­Services.​Invalidation.​Invalidate­Async Method (Method­Info, Object, Object[])

CachingServices.Invalidation.InvalidateAsync Method (MethodInfo, Object, Object[])

Asynchronously removes a method call result from the cache giving the MethodInfo representing the method, the instance and the arguments of the method call.

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 InvalidateAsync(
	MethodInfo method,
	Object instance,
	params Object[] args
)

Parameters

method
Type: System.Reflection.MethodInfo
The MethodInfo of the method call.
instance
Type: System.Object
The value of the this instance, or null for static methods.
args
Type: System.Object[]
The method arguments.

Return Value

Type: Task
See Also