Skip to content

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

@hin-longkid

Description

@hin-longkid
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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions