using CommonSocketLibrary.Abstract; using CommonSocketLibrary.Common; using Serilog; namespace CommonSocketLibrary.Socket.Manager { public class WebSocketHandlerManager : HandlerManager { public WebSocketHandlerManager(ILogger logger) : base(logger) { } protected void Add(IWebSocketHandler handler) { Add(handler.OperationCode, handler); } protected override async Task Execute(WebSocketClient sender, IWebSocketHandler handler, T value) { await handler.Execute(sender, value); } } }