C# Class Aspectacular.CacheAspect

Note: Building method caching key is very expensive performance-wise. Use it only to cache data that store in slow storage types, like databases, files, on the network, on the Internet, etc.
Please note that CacheAspect will not attempt to invalidate the cache - it's a responsibility of the ICacheProvider implementation.
Inheritance: Aspect
Afficher le fichier Open project: vgribok/Aspectacular Class Usage Examples

Méthodes publiques

Méthode Description
Step_2_BeforeTryingMethodExec ( ) : void
Step_5_FinallyAfterMethodExecution ( bool interceptedCallSucceeded ) : void

Méthodes protégées

Méthode Description
BuildMethodCacheKeyVerySlowly ( ) : string

Private Methods

Méthode Description
CacheAspect ( ICacheProvider cacheProvider ) : System
CacheAspect ( ICacheProvider2 cacheProvider ) : System
GetValueFromCacheIfItsThere ( ) : void
LogParametersWithValues ( ) : void
SaveValueToCache ( ) : void

Method Details

BuildMethodCacheKeyVerySlowly() protected méthode

protected BuildMethodCacheKeyVerySlowly ( ) : string
Résultat string

Step_2_BeforeTryingMethodExec() public méthode

public Step_2_BeforeTryingMethodExec ( ) : void
Résultat void

Step_5_FinallyAfterMethodExecution() public méthode

public Step_5_FinallyAfterMethodExecution ( bool interceptedCallSucceeded ) : void
interceptedCallSucceeded bool
Résultat void