Пример #1
0
 public DataService(IHTTPService httpService,
                    IBingHTTPService bingHTTPService,
                    IIOManager iOManager,
                    IDialogService dialogService)
 {
     _httpService     = httpService ?? throw new ArgumentNullException(nameof(httpService));
     _bingHTTPService = bingHTTPService ?? throw new ArgumentNullException(nameof(bingHTTPService));
     _iOManager       = iOManager ?? throw new ArgumentNullException(nameof(iOManager));
     _dialogService   = dialogService ?? throw new ArgumentNullException(nameof(dialogService));
     _iOManager.Initialize();
 }
Пример #2
0
 public SettingsViewModel(IBackgroundTaskService backgroundTaskService,
                          IWallpaperService wallpaperService,
                          IHTTPService hTTPService,
                          IIOManager iOManager,
                          IBingHTTPService bingHTTPService)
 {
     _backgroundTaskService = backgroundTaskService ?? throw new System.ArgumentNullException(nameof(backgroundTaskService));
     _wallpaperService      = wallpaperService ?? throw new System.ArgumentNullException(nameof(wallpaperService));
     _hTTPService           = hTTPService ?? throw new System.ArgumentNullException(nameof(hTTPService));
     _iOManager             = iOManager ?? throw new System.ArgumentNullException(nameof(iOManager));
     _bingHTTPService       = bingHTTPService ?? throw new ArgumentNullException(nameof(bingHTTPService));
 }