gRpc 客户端配置
2020-08-13 本文已影响0人
呆木大人
1. 包依赖 (使用 nuget 安装)
Grpc.AspNetCore
2. 复制 proto 文件
3. 在项目文件中加入:
<ItemGroup>
<Protobuf Include="Protos\greet.proto" GrpcServices="Client"/>
</ItemGroup>
Grpc.AspNetCore
<ItemGroup>
<Protobuf Include="Protos\greet.proto" GrpcServices="Client"/>
</ItemGroup>