示例#1
0
        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));
        }
示例#2
0
        public override void Execute(IEvent @event)
        {
            var message = new SocketMessage(Constants.PlayerStop, _apiAdapter.StopPlayback());

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