diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2018-02-04 22:23:23 +0100 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2018-02-04 22:27:29 +0100 |
commit | a8760944a08519edc0f74a33c396d5a6053de5e9 (patch) | |
tree | 36369db6b48f4f8a729077ce103fc5e2e062a145 /HelloGrpc |
Initial version.
Diffstat (limited to 'HelloGrpc')
-rw-r--r-- | HelloGrpc/HelloGrpc.csproj | 14 | ||||
-rw-r--r-- | HelloGrpc/hello.proto | 14 |
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 { +} |