C# Class LinFu.AOP.Interfaces.BaseMethodReplacementProvider

Represents the boilerplate implementation for a IMethodReplacementProvider instance.
Inheritance: IMethodReplacementProvider, IAroundInvoke
ファイルを表示 Open project: philiplaureano/LinFu

Public Methods

Method Description
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.

Protected Methods

Method Description
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

Method Details

AfterInvoke() public method

public AfterInvoke ( IInvocationInfo context, object returnValue ) : void
context IInvocationInfo
returnValue object
return void

BeforeInvoke() public method

public BeforeInvoke ( IInvocationInfo context ) : void
context IInvocationInfo
return void

CanReplace() public method

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.
return bool

GetMethodReplacement() public method

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.
return IInterceptor

GetReplacement() protected abstract method

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.
return IInterceptor

ShouldReplace() protected method

protected ShouldReplace ( object host, IInvocationInfo context ) : bool
host object
context IInvocationInfo
return bool