Files
Shogi/Gameboard.ShogiUI.Sockets/Managers/ClientActionHandlers/IActionHandler.cs
2020-12-13 14:27:36 -06:00

17 lines
441 B
C#

using System.Net.WebSockets;
using System.Threading.Tasks;
using Websockets.ServiceModels.Types;
namespace Websockets.Managers.ClientActionHandlers
{
public interface IActionHandler
{
/// <summary>
/// Responsible for parsing json and handling the request.
/// </summary>
Task Handle(WebSocket socket, string json, string userName);
}
public delegate IActionHandler ActionHandlerResolver(ClientAction action);
}