src: renames projects

This commit is contained in:
lucretia.dietz
2026-07-20 07:51:36 +02:00
parent 3e9055d9b1
commit 5c4809e9d4
39 changed files with 0 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
using Microsoft.Extensions.Hosting;
namespace ReverseLlama.Client;
internal sealed class TunnelWorker : BackgroundService
{
private readonly TunnelClient _client;
private readonly IHostApplicationLifetime _lifetime;
public TunnelWorker(TunnelClient client, IHostApplicationLifetime lifetime)
{
_client = client;
_lifetime = lifetime;
}
protected override async Task ExecuteAsync(CancellationToken stoppingToken)
{
try
{
await _client.RunAsync(stoppingToken);
}
finally
{
// RunAsync only returns when cancelled or replaced by a newer client.
// Stop gracefully (exit 0) so service recovery does not restart us
// into a reconnect fight with the replacement.
_lifetime.StopApplication();
}
}
}