Made it more secure

This commit is contained in:
2025-08-25 19:30:58 +02:00
parent 0e299d0d27
commit 0c659e9d34
6 changed files with 533 additions and 738 deletions

View File

@@ -24,6 +24,9 @@ namespace EonaCat.Connections.Client.Example
Console.Write("Enter message to send (or 'exit' to quit): ");
var message = Console.ReadLine();
HttpClient httpClient = new HttpClient();
message = await httpClient.GetStringAsync("https://samples.json-format.com/employees/10-level/employees-10-level_100MB.json");
if (!string.IsNullOrEmpty(message) && message.Equals("exit", StringComparison.OrdinalIgnoreCase))
{
await _client.DisconnectAsync().ConfigureAwait(false);