Add gRPC server example with file download

This commit is contained in:
2024-09-25 19:27:20 +02:00
commit 179d4a8dc4
14 changed files with 480 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
syntax = "proto3";
option csharp_namespace = "TestGrpc";
package greet;
service Greeter {
rpc DownloadFile (FileRequest) returns (stream ChunkMsg);
}
message FileRequest {
string FilePath = 1;
}
message ChunkMsg {
string FileName = 1;
int64 FileSize = 2;
bytes Chunk = 3;
}