Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClientProxy设计上是根据标记了RpcServiceAttribute的方法才生成吗? #22

Open
hin-longkid opened this issue Oct 27, 2017 · 0 comments

Comments

@hin-longkid
Copy link

hin-longkid commented Oct 27, 2017

class ServiceProxyGenerater
{
    private MemberDeclarationSyntax GenerateMethodDeclaration(MethodInfo method)
    {
           // 设计上是否应该根据标记了 RpcServiceAttribute 的方法才生成代理方法呢?
           // 建议提供 RpcIgnoreAttribute 跳过不需要生成代理的方法
           ...
    }
}

PS:运行Rabbit.Rpc.ClientGenerator项目时找到一处bug?
Program.cs line: 150
.Where(i => i.GetTypeInfo().IsInterface && i.GetTypeInfo().GetCustomAttribute<RpcServiceAttribute>() != null);
应改为
.Where(i => i.GetTypeInfo().IsInterface && i.GetTypeInfo().GetCustomAttribute<RpcServiceBoundAttribute>() != null);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant