public override void Execute(IEvent receivedEvent) { if (receivedEvent == null) { throw new ArgumentNullException(nameof(receivedEvent)); } var message = new SocketMessage(Constants.PlayerStop, _apiAdapter.StopPlayback()); _hub.Publish(new PluginResponseAvailableEvent(message, receivedEvent.ConnectionId)); }
public override void Execute(IEvent @event) { var message = new SocketMessage(Constants.PlayerStop, _apiAdapter.StopPlayback()); _hub.Publish(new PluginResponseAvailableEvent(message, @event.ConnectionId)); }