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