C# Класс LinFu.AOP.Interfaces.SimpleMethodReplacementProvider

Represents the simplest possible IMethodReplacementProvider implementation that will allow the user to use the original method body implementation as part of the interceptor call.
Наследование: BaseMethodReplacementProvider
Показать файл Открыть проект

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

Метод Описание
SimpleMethodReplacementProvider ( IInterceptor replacement ) : System

Initializes a new instance of the SimpleMethodReplacementProvider class.

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

Метод Описание
GetReplacement ( object host, IInvocationInfo context ) : IInterceptor

Gets the method replacement for a given invocation context.

ShouldReplace ( object host, IInvocationInfo context ) : bool

Determines whether or not a particular method body should be replaced at runtime.

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

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

Gets the method replacement for a given invocation context.
protected GetReplacement ( object host, IInvocationInfo context ) : IInterceptor
host object The host instance that contains the target method.
context IInvocationInfo The context surrounding the method call.
Результат IInterceptor

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

Determines whether or not a particular method body should be replaced at runtime.
protected ShouldReplace ( object host, IInvocationInfo context ) : bool
host object The host instance that contains the target method.
context IInvocationInfo The context surrounding the method call.
Результат bool

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

Initializes a new instance of the SimpleMethodReplacementProvider class.
public SimpleMethodReplacementProvider ( IInterceptor replacement ) : System
replacement IInterceptor The method body replacement interceptor.
Результат System