C# Class CacheAspect.Repository.CacheAttribute

Inheritance: MethodInterceptionAspect
Afficher le fichier Open project: BernieCook/CacheAspect

Méthodes publiques

Свойство Type Description
Action CacheAction

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
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.

Method Details

CacheAttribute() public méthode

Constructor.
public CacheAttribute ( CacheAction action ) : System
action CacheAction Cache action.
Résultat System

CompileTimeInitialize() public méthode

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.
Résultat void

OnInvoke() public méthode

Invoke on method call.
public OnInvoke ( MethodInterceptionArgs methodInterceptionArgs ) : void
methodInterceptionArgs MethodInterceptionArgs
Résultat void

RuntimeInitialize() public méthode

Runtime initialisation.
public RuntimeInitialize ( MethodBase methodBase ) : void
methodBase System.Reflection.MethodBase Method information.
Résultat void

Property Details

Action public_oe property

public CacheAction Action
Résultat CacheAction