C# Класс AspectSharp.AspectEngine

The AspectEngine is responsible for matching specified types agaisnt an AspectDefinition. If a match is found, a proxy is requested and the AOP features will be implemented in the Proxy.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AspectEngine ( EngineConfiguration config ) : System

Constructs an AspectEngine

WrapClass ( Type classType ) : object

Wraps an interface. The target argument must be an object capable of responding to the interface messages, or your interceptors must be capable of respoding to them.

WrapInterface ( Type inter, object target ) : object

Wraps an interface. The target argument must be an object capable of responding to the interface messages, or your interceptors must be capable of respoding to them.

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

Метод Описание
Union ( AspectSharp.Lang.AST.AspectDefinition aspects ) : AspectSharp.Lang.AST.AspectDefinition

Creates a single AspectDefinition as the merge of two or more AspectDefinitions

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

Метод Описание
Wrap ( object instance ) : object

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

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

Constructs an AspectEngine
public AspectEngine ( EngineConfiguration config ) : System
config AspectSharp.Lang.AST.EngineConfiguration From where to gather the /// configuration
Результат System

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

Creates a single AspectDefinition as the merge of two or more AspectDefinitions
protected Union ( AspectSharp.Lang.AST.AspectDefinition aspects ) : AspectSharp.Lang.AST.AspectDefinition
aspects AspectSharp.Lang.AST.AspectDefinition The aspects to be merged
Результат AspectSharp.Lang.AST.AspectDefinition

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

Wraps an interface. The target argument must be an object capable of responding to the interface messages, or your interceptors must be capable of respoding to them.
public WrapClass ( Type classType ) : object
classType System.Type Concrete class with a available constructor (public or protected) to be wrapped
Результат object

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

Wraps an interface. The target argument must be an object capable of responding to the interface messages, or your interceptors must be capable of respoding to them.
public WrapInterface ( Type inter, object target ) : object
inter System.Type Interface to be wrapped
target object The object that responds to the interface messages
Результат object