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
파일 보기 프로젝트 열기: philiplaureano/LinFu

공개 메소드들

메소드 설명
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