Ejemplo n.º 1
0
 public OfflineService(IRedditService redditService, INotificationService notificationService, ISettingsService settingsService, ISuspensionService suspensionService)
 {
     _redditService = redditService;
     _notificationService = notificationService;
     _settingsService = settingsService;
     _suspensionService = suspensionService;
     _suspensionService.Suspending += _suspensionService_Suspending;
     _suspensionService.Resuming += _suspensionService_Resuming;
 }
        public void Initialize(IImagesService imagesService, IOfflineService offlineService, IOOMService oomService, ISettingsService settingsService,
            ISuspensionService suspensionService, ISmartOfflineService smartOfflineService, ISimpleHttpService simpleHttpService)
        {
            _imagesService = imagesService;
            _offlineService = offlineService;
            _oomService = oomService;
            _settingsService = settingsService;
            _suspensionService = suspensionService;
            _smartOfflineService = smartOfflineService;

            _smartOfflineService.OffliningOpportunity += _smartOfflineService_OffliningOpportunity;
            _oomService.OutOfMemory += _oomService_OutOfMemory;
        }
Ejemplo n.º 3
0
        public void Initialize(IViewModelContextService viewModelContextService, IOOMService oomService, ISettingsService settingsService, 
            ISuspensionService suspensionService, IDynamicViewLocator dynamicViewLocator, IOfflineService offlineService, IImagesService imagesService,
            ISystemServices systemServices, ISuspendableWorkQueue suspendableWorkQueue)
        {
            _viewModelContextService = viewModelContextService;
            _oomService = oomService;
            _settingsService = settingsService;
            _suspensionService = suspensionService;
            _dynamicViewLocator = dynamicViewLocator;
            _offlineService = offlineService;
            _imagesService = imagesService;
            _systemServices = systemServices;
            _suspendableWorkQueue = suspendableWorkQueue;

            _oomService.OutOfMemory += _oomService_OutOfMemory;
        }
        public void Initialize(ISmartOfflineService smartOfflineService, ISuspensionService suspensionService, IRedditService redditService,
            ISettingsService settingsService, ISystemServices systemServices, IOfflineService offlineService, INotificationService notificationService,
            IUserService userService, ISuspendableWorkQueue suspendableWorkQueue)
        {
            _smartOfflineService = smartOfflineService;
            _suspensionService = suspensionService;
            _redditService = redditService;
            _settingsService = settingsService;
            _systemServices = systemServices;
            _offlineService = offlineService;
            _notificationService = notificationService;
            _userService = userService;
            _suspendableWorkQueue = suspendableWorkQueue;

            _smartOfflineService.OffliningOpportunity += _smartOfflineService_OffliningOpportunity;
            Messenger.Default.Register<UserLoggedInMessage>(this, UserLoggedIn);
        }
Ejemplo n.º 5
0
 public SuspensionController(ISuspensionService suspensionService)
 {
     this.suspensionService = suspensionService;
 }