mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
25 lines
601 B
C#
25 lines
601 B
C#
using Microsoft.AspNetCore.SignalR.Client;
|
|
using Remotely_ScreenCapture.Utilities;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Remotely_ScreenCapture.Sockets
|
|
{
|
|
public class MessageHandlers
|
|
{
|
|
public static void ApplyConnectionHandlers(HubConnection hubConnection)
|
|
{
|
|
hubConnection.Closed += (ex) =>
|
|
{
|
|
Logger.Write($"Error: {ex.Message}");
|
|
Environment.Exit(1);
|
|
return Task.CompletedTask;
|
|
};
|
|
|
|
}
|
|
}
|
|
}
|