Adding multiple projects & API

This commit is contained in:
2023-11-19 16:41:00 -03:00
parent 91e36a811d
commit 441bcc4e96
16 changed files with 297 additions and 3 deletions

View File

@@ -0,0 +1,19 @@
using Status;
using Grpc.Net.Client;
namespace Kasbot.API.Services
{
public class StatusService
{
public StatusService() { }
public async Task<bool> IsOk()
{
using var channel = GrpcChannel.ForAddress("https://localhost:7042");
var client = new StatusRequester.StatusRequesterClient(channel);
var reply = await client.SayHelloAsync(new HelloRequest { Name = "GreeterClient" });
return reply.Message == "Hello GreeterClient";
}
}
}