C# 클래스 LinFu.AOP.Interfaces.BaseMethodReplacementProvider

Represents the boilerplate implementation for a IMethodReplacementProvider instance.
상속: IMethodReplacementProvider, IAroundInvoke
파일 보기 프로젝트 열기: philiplaureano/LinFu

공개 메소드들

메소드 설명
AfterInvoke ( IInvocationInfo context, object returnValue ) : void
BeforeInvoke ( IInvocationInfo context ) : void
CanReplace ( object host, IInvocationInfo context ) : bool

Determines whether or not the current method implementation can be replaced.

GetMethodReplacement ( object host, IInvocationInfo context ) : IInterceptor

Obtains the IInterceptor instance that will be used to replace the current method call.

보호된 메소드들

메소드 설명
GetReplacement ( object host, IInvocationInfo context ) : IInterceptor

Obtains the IInterceptor instance that will be used to replace the current method call.

ShouldReplace ( object host, IInvocationInfo context ) : bool

메소드 상세

AfterInvoke() 공개 메소드

public AfterInvoke ( IInvocationInfo context, object returnValue ) : void
context IInvocationInfo
returnValue object
리턴 void

BeforeInvoke() 공개 메소드

public BeforeInvoke ( IInvocationInfo context ) : void
context IInvocationInfo
리턴 void

CanReplace() 공개 메소드

Determines whether or not the current method implementation can be replaced.
public CanReplace ( object host, IInvocationInfo context ) : bool
host object The target instance of the method call.
context IInvocationInfo The that describes the context of the method call.
리턴 bool

GetMethodReplacement() 공개 메소드

Obtains the IInterceptor instance that will be used to replace the current method call.
public GetMethodReplacement ( object host, IInvocationInfo context ) : IInterceptor
host object The target instance of the method call.
context IInvocationInfo The that describes the context of the method call.
리턴 IInterceptor

GetReplacement() 보호된 추상적인 메소드

Obtains the IInterceptor instance that will be used to replace the current method call.
protected abstract GetReplacement ( object host, IInvocationInfo context ) : IInterceptor
host object The target instance of the method call.
context IInvocationInfo The that describes the context of the method call.
리턴 IInterceptor

ShouldReplace() 보호된 메소드

protected ShouldReplace ( object host, IInvocationInfo context ) : bool
host object
context IInvocationInfo
리턴 bool