This commit is contained in:
2025-09-05 16:35:05 +04:30
parent 2c19a5cf4b
commit 496879c79d
9 changed files with 68 additions and 80 deletions
+9
View File
@@ -0,0 +1,9 @@
syntax="proto3";
option csharp_namespace="VizhTalk.Grpc.CDN";
package greet;
message UploadFileCommand{
bytes file = 1;
}
+13
View File
@@ -0,0 +1,13 @@
syntax="proto3";
option csharp_namespace="VizhTalk.Grpc.CDN";
package greet;
message Id{
string value = 1;
}
message UploadFileDTO{
Id id = 1;
}
+12
View File
@@ -0,0 +1,12 @@
syntax="proto3";
option csharp_namespace="VizhTalk.Grpc.CDN";
package greet;
import "DTOs.proto";
import "Commands.proto";
service CDNGrpc{
rpc UploadFile (UploadFileCommand) returns (UploadFileDTO);
}
+11 -2
View File
@@ -5,5 +5,14 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>
<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="Services.proto" GrpcServices="Both" />
<Protobuf Include="DTOs.proto" GrpcServices="Both" />
<Protobuf Include="Commands.proto" GrpcServices="Both" />
</ItemGroup>
</Project>