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 NavigationService(IInstanceFactory instanceFactory, ILifecycleService lifecycleService) { this.lifecycleService = lifecycleService; this.instanceFactory = instanceFactory; this.frame = (Frame)Application.Current.MainWindow.FindName("Frame"); }
public void BeforeScenario() { _iocContainer.Initialize(); _lifecycleService = _iocContainer.Resolve <ILifecycleService>(); _lifecycleService.Setup(); _iocContainer.Setup(); }
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()); }
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(); }
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; }
public void BeforeScenario() { var startup = new Startup(iocContainer); startup.Initialize(); lifecycleService = iocContainer.Resolve <ILifecycleService>(); lifecycleService.Setup(); }
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); }
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 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; }
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; }
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(); }
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 }; }
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; }
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; }
public NavigationService(IInstanceFactory instanceFactory, ILifecycleService lifecycleService) { this.instanceFactory = instanceFactory; this.lifecycleService = lifecycleService; }
public IosNavigationService(RootNavigationPage navigationPage, ILifecycleService lifecycleService) : base(navigationPage, lifecycleService) { }
public Lifecycle2Service(ILifecycleService lifecycleService) { _lifecycleService = lifecycleService; }
public CancelHandler(ILifecycleService lifecycleService) { _lifecycleService = lifecycleService; }
public SystemTrayApp(IBrowserService browserService, ILifecycleService lifecycle) { _browserService = browserService; _lifecycle = lifecycle; }
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 (); }
public LifeCycleServiceController(ILifecycleService service, Lifecycle2Service service2) { _service = service; _service2 = service2; }
public NavigationService(ILifecycleService lifecycleService) { this.lifecycleService = lifecycleService; this.currentView = this.backStack.FirstOrDefault(); }