コード例 #1
0
        public void Post(PostCapabilities request)
        {
            var session = _sessionManager.Sessions.First(i => i.Id == request.Id);

            session.PlayableMediaTypes = request.PlayableMediaTypes
                                         .Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries)
                                         .ToList();
        }
コード例 #2
0
        public void Post(PostCapabilities request)
        {
            if (string.IsNullOrWhiteSpace(request.Id))
            {
                request.Id = GetSession().Id;
            }
            _sessionManager.ReportCapabilities(request.Id, new SessionCapabilities
            {
                PlayableMediaTypes = request.PlayableMediaTypes.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries).ToList(),

                SupportedCommands = request.SupportedCommands.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries).ToList()
            });
        }