C# Класс CacheAspect.Repository.CacheAttribute

Наследование: MethodInterceptionAspect
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
Action CacheAction

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

Метод Описание
CacheAttribute ( CacheAction action ) : System

Constructor.

CompileTimeInitialize ( MethodBase methodBase, AspectInfo aspectInfo ) : void

Initialisation during compile time.

Normally you'd determine the class name at this point but because we're using generic repositories it's of no use.

OnInvoke ( MethodInterceptionArgs methodInterceptionArgs ) : void

Invoke on method call.

RuntimeInitialize ( MethodBase methodBase ) : void

Runtime initialisation.

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

Метод Описание
BuildCacheKey ( MethodInterceptionArgs methodInterceptionArgs ) : string

Build the cache key using the type name, method name and parameter argument values.

CacheAttribute ( ) : System

Static constructor.

GetTypeName ( Type type ) : string

Use reflection to get the object's type name.

If we're supporting non-generic repositories we need to identify the correct type name.

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

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

Constructor.
public CacheAttribute ( CacheAction action ) : System
action CacheAction Cache action.
Результат System

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

Initialisation during compile time.
Normally you'd determine the class name at this point but because we're using generic repositories it's of no use.
public CompileTimeInitialize ( MethodBase methodBase, AspectInfo aspectInfo ) : void
methodBase System.Reflection.MethodBase Method information.
aspectInfo AspectInfo Aspect information.
Результат void

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

Invoke on method call.
public OnInvoke ( MethodInterceptionArgs methodInterceptionArgs ) : void
methodInterceptionArgs MethodInterceptionArgs
Результат void

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

Runtime initialisation.
public RuntimeInitialize ( MethodBase methodBase ) : void
methodBase System.Reflection.MethodBase Method information.
Результат void

Описание свойств

Action публичное свойство

public CacheAction Action
Результат CacheAction