C# Class Castle.Facilities.Cache.CacheInterceptor

Caches the return value of the intercepted method.
Inheritance: IInterceptor
Afficher le fichier Open project: nats/castle-1.0.3-mono

Méthodes publiques

Свойство Type Description
NULL_OBJECT object

Méthodes publiques

Méthode Description
CacheInterceptor ( CacheConfigHolder transactionConfHolder ) : System
Intercept ( IInvocation invocation ) : void

Returns from the cache provider the value saved with the key generated using the specified IMethodInvocation. If the object is not found in the cache, the intercepted method is executed and its returned value is saved in the cached and returned by this method.

Method Details

CacheInterceptor() public méthode

public CacheInterceptor ( CacheConfigHolder transactionConfHolder ) : System
transactionConfHolder CacheConfigHolder
Résultat System

Intercept() public méthode

Returns from the cache provider the value saved with the key generated using the specified IMethodInvocation. If the object is not found in the cache, the intercepted method is executed and its returned value is saved in the cached and returned by this method.
public Intercept ( IInvocation invocation ) : void
invocation IInvocation the description of the intercepted method.
Résultat void

Property Details

NULL_OBJECT public_oe static_oe property

public static object NULL_OBJECT
Résultat object