Add gRPC server example with file download
This commit is contained in:
19
TestGrpc/Protos/greet.proto
Normal file
19
TestGrpc/Protos/greet.proto
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user