Ejemplo n.º 1
0
        public bool StopTimeshift(string userName, int slotIndex)
        {
            IUser user;
            IInternalControllerService control = GlobalServiceProvider.Get <IInternalControllerService>();

            return(control.StopTimeShifting(GetUserName(userName, slotIndex), out user));
        }
Ejemplo n.º 2
0
        public override Task <bool> StopTimeshiftAsync(string userName, int slotIndex)
        {
            IUser user;
            IInternalControllerService control = GlobalServiceProvider.Instance.Get <IInternalControllerService>();
            var name   = GetUserName(userName, slotIndex);
            var result = control.StopTimeShifting(name, out user);

            return(Task.FromResult(result));
        }
Ejemplo n.º 3
0
        public bool StopTimeshift(string userName, int slotIndex)
        {
            IUser user;

#if TVE3
            user = GetUserByUserName(GetUserName(userName, slotIndex));
            if (user == null)
            {
                return(false);
            }
            return(_tvControl.StopTimeShifting(ref user));
#else
            IInternalControllerService control = GlobalServiceProvider.Instance.Get <IInternalControllerService>();
            return(control.StopTimeShifting(GetUserName(userName, slotIndex), out user));
#endif
        }