Interface IResultCachePolicy<TMessage>
Determines whether results should be cached for a specific message type.
public interface IResultCachePolicy<in TMessage> where TMessage : IDispatchMessage
Type Parameters
TMessageThe message type.
- Extension Methods
Methods
ShouldCache(TMessage, object?)
Returns true when the result should be cached.
bool ShouldCache(TMessage message, object? result)
Parameters
messageTMessageThe dispatch message.
resultobjectThe action result.
Returns
- bool
trueto cache the result.