mirror of
https://github.com/Stone-Red-Code/RemoteExec.git
synced 2026-09-04 09:06:20 +02:00
16 lines
536 B
C#
16 lines
536 B
C#
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; }
|
|
} |