public PlayerPageViewModel(ILoggingService loggingService, IOnlineTelevizorConfiguration config, IDialogService dialogService, TVService service) : base(loggingService, config, dialogService) { _service = service; _loggingService = loggingService; _dialogService = dialogService; Config = config; RefreshCommand = new Command(async() => await Refresh()); BackgroundCommandWorker.RunInBackground(RefreshCommand, 30, 15); }
public CastRenderersPage(ILoggingService loggingService, IOnlineTelevizorConfiguration config) { InitializeComponent(); var dialogService = new DialogService(this); BindingContext = _viewModel = new RenderersViewModel(loggingService, config, dialogService); CheckCastingCommand = new Command(async() => await CheckCasting()); BackgroundCommandWorker.RunInBackground(CheckCastingCommand, 10, 5); }