Open sandboxFocusImprove this doc

Caching Errors and Warnings

Messages reported by PostSharp.Patterns.Caching.

Message Severity Description
CAC001 Error The [Cache] aspect is applied to a method that returns void or Task.
CAC002 Error The [InvalidateCache] aspect names a method that does not have the [Cache] aspect.
CAC003 Error The invalidating method cannot supply the this instance that is part of the cache key of the cached method.
CAC004 Error A parameter of the cached method has no parameter of the same name in the invalidating method.
CAC005 Error A parameter of the invalidating method has a type that cannot be assigned to the parameter of the same name of the cached method.
CAC006 Error The list of methods that an [InvalidateCache] aspect invalidates contains a null or empty name.
CAC007 Error An [InvalidateCache] aspect does not name any method to invalidate.
CAC008 Error An [InvalidateCache] aspect names a method that does not exist in the type where the aspect looks for it.
CAC009 Error An [InvalidateCache] aspect matches several overloads of the method to invalidate.
CAC010 Error The [Cache] aspect is applied to a method with a ref or out parameter.
CAC011 Warning A static method, or a method of a struct, uses the default caching service although dependency injection is enabled.
CAC012 Error An invalidating method and the method it invalidates use different caching services.
CAC013 Error The [Cache] aspect is applied to an async iterator or to an async method that does not return Task.