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
Datei anzeigen Open project: vgribok/Aspectacular Class Usage Examples

Public Methods

Method Description
Step_2_BeforeTryingMethodExec ( ) : void
Step_5_FinallyAfterMethodExecution ( bool interceptedCallSucceeded ) : void

Protected Methods

Method Description
BuildMethodCacheKeyVerySlowly ( ) : string

Private Methods

Method Description
CacheAspect ( ICacheProvider cacheProvider ) : System
CacheAspect ( ICacheProvider2 cacheProvider ) : System
GetValueFromCacheIfItsThere ( ) : void
LogParametersWithValues ( ) : void
SaveValueToCache ( ) : void

Method Details

BuildMethodCacheKeyVerySlowly() protected method

protected BuildMethodCacheKeyVerySlowly ( ) : string
return string

Step_2_BeforeTryingMethodExec() public method

public Step_2_BeforeTryingMethodExec ( ) : void
return void

Step_5_FinallyAfterMethodExecution() public method

public Step_5_FinallyAfterMethodExecution ( bool interceptedCallSucceeded ) : void
interceptedCallSucceeded bool
return void