Method | Description | |
---|---|---|
SimpleMethodReplacementProvider ( IInterceptor replacement ) : System |
Initializes a new instance of the SimpleMethodReplacementProvider class.
|
Method | Description | |
---|---|---|
GetReplacement ( object host, IInvocationInfo context ) : IInterceptor |
Gets the method replacement for a given
|
|
ShouldReplace ( object host, IInvocationInfo context ) : bool |
Determines whether or not a particular method body should be replaced at runtime.
|
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. |
return | IInterceptor |
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. |
return | bool |
public SimpleMethodReplacementProvider ( IInterceptor replacement ) : System | ||
replacement | IInterceptor | The method body replacement interceptor. |
return | System |