Diagnostics reported by Metalama.Patterns.Caching.
| Article | Description |
|---|---|
| LAMA5100: The invalidated method isn't cached | The [InvalidateCache] aspect names a method that isn't cached. |
| LAMA5101: The invalidating method can't provide the instance of the cached method | The invalidating method can't provide the instance that's part of the cache key of the invalidated method. |
| LAMA5102: The invalidating method lacks a parameter of the cached method | A parameter of the invalidated method has no parameter of the same name in the invalidating method. |
| LAMA5103: The parameter types of the invalidating and cached methods don't match | A parameter of the invalidating method has a type that isn't compatible with the matching parameter of the cached method. |
| LAMA5104: A method name passed to [InvalidateCache] is empty | A method name passed to [InvalidateCache] is null, empty, or whitespace. |
| LAMA5105: [InvalidateCache] doesn't name any method to invalidate | The [InvalidateCache] aspect doesn't name any method to invalidate. |
| LAMA5106: The method to invalidate doesn't exist | The [InvalidateCache] aspect names a method that doesn't exist in the searched type. |
| LAMA5107: Several overloads of the method to invalidate are suitable | The method name passed to [InvalidateCache] matches several suitable overloads. |
| LAMA5108: The cached method is invalidated by another method | Informational message showing which [InvalidateCache] method invalidates a cached method (not currently reported). |
| LAMA5109: The method invalidates a cached method | Informational message showing which cached method an [InvalidateCache] method invalidates (not currently reported). |
| LAMA5110: A static method can't use caching with dependency injection | A static method uses caching while caching is configured to use dependency injection. |
| LAMA5111: A parameter classifier prevents the method from being cached | A parameter classifier marked a parameter of a cached method as ineligible. |
| LAMA5112: The [Cache] aspect can be applied at most once to a method | The [Cache] aspect is applied more than once to the same method. |