Wpf的gRpc的Server/Client
2021-03-17 08:23
标签:thread plugin can shu override mode ann 引入 ext 创建Wpf库项目Hello、Wpf项目HelloServer、Wpf项目HelloClient 库项目Hello中引入Nuget Grpc、Grpc.Tools Wpf项目Client、Server分别引入Nuget Grpc 运行情况 代码工程 Wpf的gRpc的Server/Client 标签:thread plugin can shu override mode ann 引入 ext 原文地址:https://www.cnblogs.com/linxmouse/p/12396197.html
syntax = "proto3";
option csharp_namespace = "greeter.hello";
service Greeter{
rpc SayHello (HelloRequest) returns (HelloResponse);
rpc SayWorld (HelloRequest) returns (HelloResponse);
}
message HelloRequest{
string name = 1;
}
message HelloResponse{
string message = 1;
}
..\packages\Grpc.Tools.2.27.0\tools\windows_x64\protoc.exe -I.\Proto\ --csharp_out ./ --grpc_out ./ --plugin=protoc-gen-grpc=..\packages\Grpc.Tools.2.27.0\tools\windows_x64\grpc_csharp_plugin.exe .\Proto\routine.proto
using System.Threading.Tasks;
using greeter.hello;
using Grpc.Core;
namespace HelloServer.gRpcService
{
class GreeterService: Greeter.GreeterBase
{
public override Task
using System.ComponentModel;
using System.Windows;
using greeter.hello;
using Grpc.Core;
using HelloServer.gRpcService;
namespace HelloServer
{
///
using System.ComponentModel;
using System.Windows;
using greeter.hello;
using Grpc.Core;
namespace HelloClient
{
///
https://github.com/linxmouse/gRpcStartup
文章标题:Wpf的gRpc的Server/Client
文章链接:http://soscw.com/index.php/essay/65219.html