protected GetMethodGenerator ( MetaMethod method, |
||
method | MetaMethod | |
@class | ||
options | ProxyGenerationOptions | |
overrideMethod | OverrideMethodDelegate | |
return | MethodGenerator |
protected override MethodGenerator GetMethodGenerator(MetaMethod method, ClassEmitter @class,
ProxyGenerationOptions options,
OverrideMethodDelegate overrideMethod)
{
if (!method.Proxyable)
{
return new MinimialisticMethodGenerator(method, overrideMethod);
}
var invocation = GetInvocationType(method, @class, options);
return new MethodWithInvocationGenerator(method,
@class.GetField("__interceptors"),
invocation,
getTargetExpression,
overrideMethod,
null);
}