aboutsummaryrefslogtreecommitdiff
path: root/HelloGrpc
diff options
context:
space:
mode:
Diffstat (limited to 'HelloGrpc')
-rw-r--r--HelloGrpc/HelloGrpc.csproj14
-rw-r--r--HelloGrpc/hello.proto14
2 files changed, 28 insertions, 0 deletions
diff --git a/HelloGrpc/HelloGrpc.csproj b/HelloGrpc/HelloGrpc.csproj
new file mode 100644
index 0000000..7471977
--- /dev/null
+++ b/HelloGrpc/HelloGrpc.csproj
@@ -0,0 +1,14 @@
+<Project Sdk="Microsoft.NET.Sdk">
+ <PropertyGroup>
+ <TargetFramework>netstandard2.0</TargetFramework>
+ </PropertyGroup>
+ <ItemGroup>
+ <PackageReference Include="Google.Protobuf" Version="3.5.1" />
+ <PackageReference Include="Grpc" Version="1.9.0" />
+ <PackageReference Include="Grpc.Tools" Version="1.9.0" />
+ <PackageReference Include="Grpc.Tools.MsBuild.Unofficial" Version="1.0.44" />
+ </ItemGroup>
+ <PropertyGroup>
+ <GrpcToolsVersion>1.9.0</GrpcToolsVersion>
+ </PropertyGroup>
+</Project>
diff --git a/HelloGrpc/hello.proto b/HelloGrpc/hello.proto
new file mode 100644
index 0000000..8776dd7
--- /dev/null
+++ b/HelloGrpc/hello.proto
@@ -0,0 +1,14 @@
+syntax = "proto3";
+
+package HelloNet.Api;
+
+service HelloSayer {
+ rpc SayHello(HelloRequest) returns (HelloResponse) {}
+}
+
+message HelloRequest {
+ string greetee = 1;
+}
+
+message HelloResponse {
+}