Esempio n. 1
0
        public override void Execute(IEvent receivedEvent)
        {
            if (receivedEvent == null)
            {
                throw new ArgumentNullException(nameof(receivedEvent));
            }

            var message = new SocketMessage(Constants.PlayerNext, _apiAdapter.PlayNext());

            _hub.Publish(new PluginResponseAvailableEvent(message, receivedEvent.ConnectionId));
        }
Esempio n. 2
0
        public override void Execute(IEvent @event)
        {
            var message = new SocketMessage(Constants.PlayerNext, _apiAdapter.PlayNext());

            _hub.Publish(new PluginResponseAvailableEvent(message, @event.ConnectionId));
        }