Initial version

This commit is contained in:
2026-06-09 22:27:38 +02:00
parent 5afbf3b01c
commit 5ff2ac8941
57 changed files with 2343 additions and 98 deletions
+33
View File
@@ -0,0 +1,33 @@
using Grpc.Core.Interceptors;
using Grpc.Net.Client;
using EonaCat.gRPC.Client.Helpers;
using EonaCat.gRPC.Client;
using EonaCat.LogStack.Logging;
using EonaCat.LogStack.Extensions;
using Microsoft.Extensions.Logging;
Console.WriteLine("Welcome to EonaCat.gRPC Client Application.");
const string serverAddress = "http://localhost:5227";
//var (invoker, channel) = Extension.ConfigureChannel(serverAddress, loggerFactory);
using var channel = GrpcChannel.ForAddress(serverAddress, new GrpcChannelOptions
{
LoggerFactory = Microsoft.Extensions.Logging.LoggerFactory.Create(builder =>
{
builder.AddEonaCatLogging();
builder.SetMinimumLevel(LogLevel.Debug);
})
});
var invoker = channel.Intercept(new TracerInterceptor(Microsoft.Extensions.Logging.LoggerFactory.Create(builder =>
{
builder.AddEonaCatLogging();
builder.SetMinimumLevel(LogLevel.Debug);
})));
await Extension.ExecutePrograms(invoker);
Console.ReadKey();
await channel.ShutdownAsync();