コード例 #1
0
        public void Execute(IEvent @event)
        {
            var trackDetails = _apiAdapter.GetPlayingTrackDetails();
            var message      = new SocketMessage(Constants.NowPlayingDetails, trackDetails);

            _hub.Publish(new PluginResponseAvailableEvent(message, @event.ConnectionId));
        }
コード例 #2
0
        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));
        }