public LifecycleServiceDemo(String defaultRepository, String secondaryRepository, String userName, String password)
     : base(defaultRepository, secondaryRepository, userName, password)
 {
     ServiceFactory serviceFactory = ServiceFactory.Instance;
     lifecycleService =
         serviceFactory.GetRemoteService<ILifecycleService>(DemoServiceContext);
 }
Exemple #2
0
        public NavigationService(IInstanceFactory instanceFactory, ILifecycleService lifecycleService)
        {
            this.lifecycleService = lifecycleService;
            this.instanceFactory  = instanceFactory;

            this.frame = (Frame)Application.Current.MainWindow.FindName("Frame");
        }
Exemple #3
0
 public void BeforeScenario()
 {
     _iocContainer.Initialize();
     _lifecycleService = _iocContainer.Resolve <ILifecycleService>();
     _lifecycleService.Setup();
     _iocContainer.Setup();
 }
Exemple #4
0
 public SystemModule(IAppFolderInfo appFolderInfo,
                     IRuntimeInfo runtimeInfo,
                     IPlatformInfo platformInfo,
                     IOsInfo osInfo,
                     IRouteCacheProvider routeCacheProvider,
                     IConfigFileProvider configFileProvider,
                     IMainDatabase database,
                     ILifecycleService lifecycleService,
                     IDeploymentInfoProvider deploymentInfoProvider)
     : base("system")
 {
     _appFolderInfo          = appFolderInfo;
     _runtimeInfo            = runtimeInfo;
     _platformInfo           = platformInfo;
     _osInfo                 = osInfo;
     _routeCacheProvider     = routeCacheProvider;
     _configFileProvider     = configFileProvider;
     _database               = database;
     _lifecycleService       = lifecycleService;
     _deploymentInfoProvider = deploymentInfoProvider;
     Get("/status", x => GetStatus());
     Get("/routes", x => GetRoutes());
     Post("/shutdown", x => Shutdown());
     Post("/restart", x => Restart());
 }
Exemple #5
0
        private void Init()
        {
            IocBootstrapper.RegisterTypes(IocContainer.GetContainer());
            _lifecycleService = IocContainer.GetContainer().Resolve <ILifecycleService> ();
            AutoMapperBootstrapper.MapTypes();

            _locator = new ViewModelLocator();
            _store   = new ViewModelStore();

            IocContainer.GetContainer().RegisterInstance <ILogger> (new Logger());
            IocContainer.GetContainer().RegisterInstance <ISecureDatabase>(new AndroidSecureDatabase());
            IocContainer.GetContainer().RegisterType <IHttpClientHelper, HttpClientHelper>();
            IocContainer.GetContainer().RegisterInstance <IExtendedNavigationService>(ConfigureNav());
            IocContainer.GetContainer().RegisterInstance <IExtendedDialogService>(new ExtendedDialogService());
            IocContainer.GetContainer().RegisterInstance <IHudService>(new HudService());
            IocContainer.GetContainer().RegisterInstance <IConnectivityService>(new ConnectivityService());
            IocContainer.GetContainer().RegisterInstance <IBrowserService>(new BrowserService());
            IocContainer.GetContainer().RegisterInstance <IGeolocator>(new Geolocator());
            IocContainer.GetContainer().RegisterInstance <IDispatcherService>(new DispatcherService());
            IocContainer.GetContainer().RegisterInstance <IPhoneService> (new PhoneService());
            IocContainer.GetContainer().RegisterInstance <IMapService> (new MapService());
            IocContainer.GetContainer().RegisterInstance <IEmailService> (new EmailService());
            IocContainer.GetContainer().RegisterInstance <ITwitterHelper> (new AndroidTwitterHelper());
            IocContainer.GetContainer().RegisterInstance <IFacebookHelper> (new AndroidFacebookHelper());
            IocContainer.GetContainer().RegisterInstance <IFileReader> (new FileReader());

            _lifecycleService.OnStart();
        }
Exemple #6
0
        public NavigationService(RootNavigationPage navigationPage, ILifecycleService lifecycleService)
        {
            this.NavigationPage   = Application.Current.MainPage as RootNavigationPage;
            this.instanceFactory  = IocInstanceFactory.Default;
            this.lifecycleService = lifecycleService;

            this.NavigationPage.BackButtonPressedEvent += this.NavigationPageBackButtonPressedEvent;
        }
Exemple #7
0
        public void BeforeScenario()
        {
            var startup = new Startup(iocContainer);

            startup.Initialize();
            lifecycleService = iocContainer.Resolve <ILifecycleService>();
            lifecycleService.Setup();
        }
Exemple #8
0
        public LifecycleServiceDemo(String defaultRepository, String secondaryRepository, String userName, String password)
            : base(defaultRepository, secondaryRepository, userName, password)
        {
            ServiceFactory serviceFactory = ServiceFactory.Instance;

            lifecycleService =
                serviceFactory.GetRemoteService <ILifecycleService>(DemoServiceContext);
        }
        public LocalizedSpeakerImpl(ILogManager logManager, ISettingsRepository settingsRepository, ILifecycleService lifecycleService)
        {
            _settingsRepository = settingsRepository;
            _lifecycleService   = lifecycleService;
            _mediaElement       = new MediaElement();

            _voiceFileHelper = new VoiceFileHelper(logManager);
            _logger          = logManager.GetLogger(Scopes.Driving, LogManagerFactory.DefaultConfiguration);
        }
Exemple #10
0
        public MainViewModel() : base()
        {
            _facebookHelper   = IocContainer.GetContainer().Resolve <IFacebookHelper> ();
            _twitterHelper    = IocContainer.GetContainer().Resolve <ITwitterHelper> ();
            _lifecycleService = IocContainer.GetContainer().Resolve <ILifecycleService> ();

            _lifecycleService.ApplicationWillStart -= OnApplicationWillStart;
            _lifecycleService.ApplicationWillStart += OnApplicationWillStart;
        }
Exemple #11
0
		public MainViewModel () : base ()
		{
			_facebookHelper = IocContainer.GetContainer ().Resolve<IFacebookHelper> ();
			_twitterHelper = IocContainer.GetContainer ().Resolve<ITwitterHelper> ();
			_lifecycleService = IocContainer.GetContainer ().Resolve<ILifecycleService> ();

			_lifecycleService.ApplicationWillStart -= OnApplicationWillStart;
			_lifecycleService.ApplicationWillStart += OnApplicationWillStart;
		}
 public InitialiseService(ISchedulerFactory schedulerFactory, IJobFactory jobFactory,
                          ILifecycleService <Dragon> lifecycleService, IContext context, IOptions <DragonAgeingOptions> options)
 {
     _schedulerFactory = schedulerFactory;
     _jobFactory       = jobFactory;
     _lifecycleService = lifecycleService;
     _context          = context;
     _options          = options.Value;
 }
Exemple #13
0
        public NavigationService(IInstanceFactory instanceFactory, ILifecycleService lifecycleService)
        {
            this.instanceFactory  = instanceFactory;
            this.lifecycleService = lifecycleService;

            //SystemNavigationManager.GetForCurrentView().BackRequested += (s, o) =>
            //    {
            //        o.Handled = true;
            //        this.GoBack();
            //    };
        }
 public AbstractLifecycleController(
     ApiSettings settings,
     ILogger <AbstractLifecycleController> logger,
     ITransactionCoordinator transactionCoordinator,
     ILifecycleService lifecycleService,
     IApiLifecycleModelMapper lifecycleModelMapper
     )
     : base(settings, logger, transactionCoordinator)
 {
     this.LifecycleService     = lifecycleService;
     this.LifecycleModelMapper = lifecycleModelMapper;
 }
 public LifecycleController(
     ApiSettings settings,
     ILogger <LifecycleController> logger,
     ITransactionCoordinator transactionCoordinator,
     ILifecycleService lifecycleService,
     IApiLifecycleModelMapper lifecycleModelMapper
     )
     : base(settings,
            logger,
            transactionCoordinator,
            lifecycleService,
            lifecycleModelMapper)
 {
     this.BulkInsertLimit = 250;
     this.MaxLimit        = 1000;
     this.DefaultLimit    = 250;
 }
Exemple #16
0
 public SystemModule(IAppFolderInfo appFolderInfo,
                     IRuntimeInfo runtimeInfo,
                     IRouteCacheProvider routeCacheProvider,
                     IConfigFileProvider configFileProvider,
                     IDatabase database,
                     ILifecycleService lifecycleService)
     : base("system")
 {
     _appFolderInfo      = appFolderInfo;
     _runtimeInfo        = runtimeInfo;
     _routeCacheProvider = routeCacheProvider;
     _configFileProvider = configFileProvider;
     _database           = database;
     _lifecycleService   = lifecycleService;
     Get["/status"]      = x => GetStatus();
     Get["/routes"]      = x => GetRoutes();
     Post["/shutdown"]   = x => Shutdown();
     Post["/restart"]    = x => Restart();
 }
Exemple #17
0
 public SystemModule(IAppFolderInfo appFolderInfo,
                     IRuntimeInfo runtimeInfo,
                     IRouteCacheProvider routeCacheProvider,
                     IConfigFileProvider configFileProvider,
                     IMainDatabase database,
                     ILifecycleService lifecycleService)
     : base("system")
 {
     _appFolderInfo = appFolderInfo;
     _runtimeInfo = runtimeInfo;
     _routeCacheProvider = routeCacheProvider;
     _configFileProvider = configFileProvider;
     _database = database;
     _lifecycleService = lifecycleService;
     Get["/status"] = x => GetStatus();
     Get["/routes"] = x => GetRoutes();
     Post["/shutdown"] = x => Shutdown();
     Post["/restart"] = x => Restart();
 }
        public GameService(ILifecycleService <Dragon> lifecycleService, IPettingService pettingService,
                           IFeedingService feedingService, IContext context)
        {
            _lifecycleService = lifecycleService;
            _pettingService   = pettingService;
            _feedingService   = feedingService;
            _context          = context;

            _userActions = new Dictionary <string, Func <Dragon, Dragon> >
            {
                { "Feed", _feedingService.Perform }, { "Pet", _pettingService.Perform },
                { "F", _feedingService.Perform }, { "P", _pettingService.Perform }
            };

            _timeActions = new List <Func <Dragon, Dragon> >
            {
                _feedingService.Check, _pettingService.Check, _lifecycleService.Age
            };
        }
Exemple #19
0
 public SystemController(IAppFolderInfo appFolderInfo,
                         IRuntimeInfo runtimeInfo,
                         IPlatformInfo platformInfo,
                         IOsInfo osInfo,
                         IConfigFileProvider configFileProvider,
                         IMainDatabase database,
                         ILifecycleService lifecycleService,
                         IDeploymentInfoProvider deploymentInfoProvider,
                         EndpointDataSource endpoints,
                         DfaGraphWriter graphWriter,
                         DuplicateEndpointDetector detector)
 {
     _appFolderInfo          = appFolderInfo;
     _runtimeInfo            = runtimeInfo;
     _platformInfo           = platformInfo;
     _osInfo                 = osInfo;
     _configFileProvider     = configFileProvider;
     _database               = database;
     _lifecycleService       = lifecycleService;
     _deploymentInfoProvider = deploymentInfoProvider;
     _endpointData           = endpoints;
     _graphWriter            = graphWriter;
     _detector               = detector;
 }
Exemple #20
0
 public DebugFullDrivingGuideSession(DrivingRouteObject drivingRouteObject,
                                     IDrivingGuide drivingGuide,
                                     IDrivingRouteObjectFactory drivingRouteObjectFactory,
                                     IGenericRendererSync <DrivingRouteObject, DrivingRouteGuideMapObject> guideRouteRenderer,
                                     MapObjectCollection mapObjectCollection,
                                     IInternalLocationService locationService,
                                     IInternalUserLocationLayerPresenter locationLayerPresenter,
                                     ILogManager logManager,
                                     ISettingsRepository settingsRepository,
                                     ILifecycleService lifecycleService,
                                     ILanguagesRepository languagesRepository,
                                     ICameraManager cameraManager,
                                     IMapCameraPositionPresenter cameraPositionPresenter,
                                     ViaPointsSessionManagerFactory viaPointsSessionManagerFactory,
                                     RoutesOverviewPresenterFactory routesOverviewPresenterFactory,
                                     IConcurrencyService concurrencyService,
                                     IDebugPanelSettingsRepository debugRepository) : base(drivingRouteObject,
                                                                                           drivingGuide,
                                                                                           drivingRouteObjectFactory,
                                                                                           guideRouteRenderer,
                                                                                           mapObjectCollection,
                                                                                           locationService,
                                                                                           locationLayerPresenter,
                                                                                           logManager,
                                                                                           settingsRepository,
                                                                                           lifecycleService,
                                                                                           languagesRepository,
                                                                                           cameraManager,
                                                                                           cameraPositionPresenter,
                                                                                           viaPointsSessionManagerFactory,
                                                                                           routesOverviewPresenterFactory)
 {
     _concurrencyService = concurrencyService;
     _debugRepository    = debugRepository;
     _drivingGuide       = drivingGuide;
 }
Exemple #21
0
 public NavigationService(IInstanceFactory instanceFactory, ILifecycleService lifecycleService)
 {
     this.instanceFactory  = instanceFactory;
     this.lifecycleService = lifecycleService;
 }
Exemple #22
0
 public IosNavigationService(RootNavigationPage navigationPage, ILifecycleService lifecycleService)
     : base(navigationPage, lifecycleService)
 {
 }
Exemple #23
0
 public Lifecycle2Service(ILifecycleService lifecycleService)
 {
     _lifecycleService = lifecycleService;
 }
Exemple #24
0
 public CancelHandler(ILifecycleService lifecycleService)
 {
     _lifecycleService = lifecycleService;
 }
Exemple #25
0
 public SystemTrayApp(IBrowserService browserService, ILifecycleService lifecycle)
 {
     _browserService = browserService;
     _lifecycle      = lifecycle;
 }
Exemple #26
0
        private void Init()
        {
            IocBootstrapper.RegisterTypes(IocContainer.GetContainer());
            _lifecycleService = IocContainer.GetContainer ().Resolve<ILifecycleService> ();
            AutoMapperBootstrapper.MapTypes();

            _locator = new ViewModelLocator();
            _store = new ViewModelStore();

			IocContainer.GetContainer().RegisterInstance<ILogger> (new Logger ());
			IocContainer.GetContainer().RegisterInstance<ISecureDatabase>(new AndroidSecureDatabase());
            IocContainer.GetContainer().RegisterType<IHttpClientHelper, HttpClientHelper>();
            IocContainer.GetContainer().RegisterInstance<IExtendedNavigationService>(ConfigureNav());
            IocContainer.GetContainer().RegisterInstance<IExtendedDialogService>(new ExtendedDialogService());
            IocContainer.GetContainer().RegisterInstance<IHudService>(new HudService());
            IocContainer.GetContainer().RegisterInstance<IConnectivityService>(new ConnectivityService());
            IocContainer.GetContainer().RegisterInstance<IBrowserService>(new BrowserService());
            IocContainer.GetContainer().RegisterInstance<IGeolocator>(new Geolocator());
            IocContainer.GetContainer().RegisterInstance<IDispatcherService>(new DispatcherService());
			IocContainer.GetContainer().RegisterInstance<IPhoneService> (new PhoneService());
			IocContainer.GetContainer().RegisterInstance<IMapService> (new MapService());
			IocContainer.GetContainer().RegisterInstance<IEmailService> (new EmailService());
			IocContainer.GetContainer().RegisterInstance<ITwitterHelper> (new AndroidTwitterHelper ());
			IocContainer.GetContainer().RegisterInstance<IFacebookHelper> (new AndroidFacebookHelper ());
            IocContainer.GetContainer().RegisterInstance<IFileReader> (new FileReader ());

			_lifecycleService.OnStart ();
        }
Exemple #27
0
 public LifeCycleServiceController(ILifecycleService service, Lifecycle2Service service2)
 {
     _service  = service;
     _service2 = service2;
 }
Exemple #28
0
 public NavigationService(ILifecycleService lifecycleService)
 {
     this.lifecycleService = lifecycleService;
     this.currentView      = this.backStack.FirstOrDefault();
 }