Beispiel #1
0
        public void Post(SendPlaystateCommand request)
        {
            var command = new PlaystateRequest
            {
                Command           = request.Command,
                SeekPositionTicks = request.SeekPositionTicks
            };

            var task = _sessionManager.SendPlaystateCommand(GetSession(_sessionContext).Result.Id, request.Id, command, CancellationToken.None);

            Task.WaitAll(task);
        }
Beispiel #2
0
 public Task Post(SendPlaystateCommand request)
 {
     return(_sessionManager.SendPlaystateCommand(GetSession(_sessionContext).Id, request.Id, request, CancellationToken.None));
 }
Beispiel #3
0
        public void Post(SendPlaystateCommand request)
        {
            var task = _sessionManager.SendPlaystateCommand(GetSession(_sessionContext).Result.Id, request.Id, request, CancellationToken.None);

            Task.WaitAll(task);
        }