C# 클래스 CacheAspect.Repository.CacheAttribute

상속: MethodInterceptionAspect
파일 보기 프로젝트 열기: BernieCook/CacheAspect

공개 프로퍼티들

프로퍼티 타입 설명
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