Improve configuration of RemoteExecutor

This commit is contained in:
Stone_Red
2025-12-23 14:43:19 +01:00
parent 64818f735f
commit 5819432c36
16 changed files with 204 additions and 63 deletions
+16
View File
@@ -0,0 +1,16 @@
using Microsoft.AspNetCore.SignalR.Client;
using RemoteExec.Shared;
using System.Threading.Channels;
namespace RemoteExec.Client;
public class ServerConnection(HubConnection connection, HttpClient httpClient)
{
public HubConnection Connection { get; } = connection;
public HttpClient HttpClient { get; } = httpClient;
public Channel<TaskItem> TaskChannel { get; } = Channel.CreateUnbounded<TaskItem>();
public ServerMetrics? Metrics { get; set; }
public Func<Exception?, Task>? ClosedEventHandler { get; set; }
}