Remotely/Remotely_ScreenCast/Sockets/MessageHandlers.cs
2021-07-29 07:53:41 -07:00

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;
};
}
}
}