Y2S2-Syski/syski_api/uk.co.syski.websocket/Services/WebSockets/Actions/Handlers/ActionHandler.cs
2020-06-09 21:02:14 +01:00

23 lines
642 B
C#

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();
}
}