public ExtensionConnectionProvider( ILogger <ExtensionConnectionProvider> logger, IGameData gameData, IExtensionPacketDataSerializer packetDataSerializer, ISessionInfoProvider sessionInfoProvider ) { this.logger = logger; this.gameData = gameData; this.packetDataSerializer = packetDataSerializer; this.sessionInfoProvider = sessionInfoProvider; }
public ExtensionWebSocketConnection( ILogger logger, WebSocket socket, IExtensionPacketDataSerializer serializer, SessionInfo session, string twitchBroadcasterId) { this.SendQueue = new ConcurrentQueue <Packet>(); this.logger = logger; this.socket = socket; this.session = session; this.packetDataSerializer = serializer; this.buffer = new byte[4096]; this.KillTask = new TaskCompletionSource <object>(); this.BroadcasterTwitchUserId = twitchBroadcasterId; }