Add project files.

This commit is contained in:
2025-09-01 13:34:36 +04:30
parent 1f2fb6e2d7
commit 81e43f5b92
83 changed files with 1733 additions and 0 deletions
@@ -0,0 +1,24 @@
syntax="proto3";
option csharp_namespace="VizhTalk.Grpc.Learning.Language";
package greet;
message Language {
string title = 1;
}
message GetAllLanguageReply {
repeated Language languages = 1;
}
message Empty {}
message GetLanguageByTitleRequest {
string title = 1;
}
service LanguageGrpc {
rpc GetAll (Empty) returns (GetAllLanguageReply);
rpc GetLanguageByTitle (GetLanguageByTitleRequest) returns (Language);
}
@@ -0,0 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Google.Protobuf" Version="3.32.0" />
<PackageReference Include="Grpc.Net.Client" Version="2.71.0" />
<PackageReference Include="Grpc.Tools" Version="2.58.0" PrivateAssets="All" />
</ItemGroup>
<ItemGroup>
<Protobuf Include="Language.proto" GrpcServices="Both" />
</ItemGroup>
</Project>