Y2S2-Syski/syski_api/uk.co.syski.websocket/Services/WebSockets/Actions/Handlers/ActionHandler.cs

23 lines
642 B
C#
Raw Permalink Normal View History

2020-06-09 20:02:14 +00:00
using System;
namespace Syski.WebSocket.Services.WebSockets.Actions.Handlers
{
public abstract class ActionHandler
{
protected readonly Action action;
protected readonly WebSocketConnection webSocketConnection;
protected readonly IServiceProvider serviceProvider;
public ActionHandler(Action action, WebSocketConnection webSocketConnection, IServiceProvider serviceProvider)
{
this.action = action;
this.webSocketConnection = webSocketConnection;
this.serviceProvider = serviceProvider;
}
public abstract void HandleAction();
}
}