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
+7
View File
@@ -1,6 +1,13 @@
using Vizhtalk.CDN.Presentation.Services;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddGrpc();
var app = builder.Build();
app.MapGet("/", () => "Hello World!");
app.MapGrpcService<CDNService>();
app.Run();
@@ -0,0 +1,12 @@
using Grpc.Core;
using VizhTalk.Grpc.CDN;
namespace Vizhtalk.CDN.Presentation.Services;
public class CDNService : CDNGrpc.CDNGrpcBase
{
public override Task<UploadFileDTO> UploadFile(UploadFileCommand request, ServerCallContext context)
{
return base.UploadFile(request, context);
}
}
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
@@ -7,7 +7,9 @@
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\VizhTalk.BuildingBlocks.Infrastructure\VizhTalk.BuildingBlocks.Infrastructure.csproj" />
<PackageReference Include="Grpc.AspNetCore" Version="2.57.0" />
<ProjectReference Include="..\VizhTalk.BuildingBlocks.Infrastructure\VizhTalk.BuildingBlocks.Infrastructure.csproj" />
<ProjectReference Include="..\VizhTalk.Grpc.CDN\VizhTalk.Grpc.CDN.csproj" />
</ItemGroup>
<ItemGroup>