mirror of
https://github.com/Stone-Red-Code/RemoteExec.git
synced 2026-09-04 09:06:20 +02:00
Improve configuration of RemoteExecutor
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
Reference in New Issue
Block a user