17 lines
478 B
C#
17 lines
478 B
C#
using Gameboard.ShogiUI.Sockets.ServiceModels.Socket.Types;
|
|
using System.Net.WebSockets;
|
|
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(WebSocket socket, string json, string userName);
|
|
}
|
|
|
|
public delegate IActionHandler ActionHandlerResolver(ClientAction action);
|
|
}
|