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