Files
Shogi/Gameboard.ShogiUI.Sockets/Managers/ClientActionHandlers/IActionHandler.cs
2021-03-04 20:40:53 -06:00

16 lines
431 B
C#

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