Example #1
0
        public object Get(GetTimers request)
        {
            var result = _liveTvManager.GetTimers(new TimerQuery
            {
                ChannelId     = request.ChannelId,
                SeriesTimerId = request.SeriesTimerId
            }, CancellationToken.None).Result;

            return(ToOptimizedSerializedResultUsingCache(result));
        }
Example #2
0
        public async Task <object> Get(GetTimers request)
        {
            var result = await _liveTvManager.GetTimers(new TimerQuery
            {
                ChannelId     = request.ChannelId,
                SeriesTimerId = request.SeriesTimerId
            }, CancellationToken.None).ConfigureAwait(false);

            return(ToOptimizedSerializedResultUsingCache(result));
        }