public bool StopTimeshift(string userName, int slotIndex) { IUser user; IInternalControllerService control = GlobalServiceProvider.Get <IInternalControllerService>(); return(control.StopTimeShifting(GetUserName(userName, slotIndex), out user)); }
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)); }
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 }