C# Класс 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.
Наследование: Aspect
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Step_2_BeforeTryingMethodExec ( ) : void
Step_5_FinallyAfterMethodExecution ( bool interceptedCallSucceeded ) : void

Защищенные методы

Метод Описание
BuildMethodCacheKeyVerySlowly ( ) : string

Приватные методы

Метод Описание
CacheAspect ( ICacheProvider cacheProvider ) : System
CacheAspect ( ICacheProvider2 cacheProvider ) : System
GetValueFromCacheIfItsThere ( ) : void
LogParametersWithValues ( ) : void
SaveValueToCache ( ) : void

Описание методов

BuildMethodCacheKeyVerySlowly() защищенный Метод

protected BuildMethodCacheKeyVerySlowly ( ) : string
Результат string

Step_2_BeforeTryingMethodExec() публичный Метод

public Step_2_BeforeTryingMethodExec ( ) : void
Результат void

Step_5_FinallyAfterMethodExecution() публичный Метод

public Step_5_FinallyAfterMethodExecution ( bool interceptedCallSucceeded ) : void
interceptedCallSucceeded bool
Результат void