Esempio n. 1
0
        private async Task InitializeAsync()
        {
            if (ConfigurationManager.AppSettings != null)
            {
                return;
            }

            InitConfig();
            ExecutingPlatform.Current = AppPlatform.UWP;
            ApplicationLanguages.PrimaryLanguageOverride = GlobalizationPreferences.Languages[0];

#if !DEBUG
            AppCenter.Start(ConfigurationManager.AppSettings["WindowsAppcenterSecret"], typeof(Analytics), typeof(Crashes));
            Analytics.TrackEvent("AppStarted");
#endif

            LoggerService.Initialize();

            RegisterServices();

            NavigationServiceInitializerService.Initialize();
            await JumpListService.InitializeAsync();

            ThemeSelectorService.Initialize();
        }
Esempio n. 2
0
        private async Task InitializeAsync(object activationArgs)
        {
            ExecutingPlatform.Current = AppPlatform.UWP;
            ConfigurationManager.Initialise(PortableStream.Current);
            ApplicationLanguages.PrimaryLanguageOverride = GlobalizationPreferences.Languages[0];

#if !DEBUG
            AppCenter.Start(ConfigurationManager.AppSettings["WindowsAppcenterSecret"], typeof(Analytics), typeof(Crashes));
#endif

            LoggerService.Initialize();

            NavigationService navService = ConfigureNavigation();
            RegisterServices(navService);

            await JumpListService.InitializeAsync();

            ThemeSelectorService.Initialize();
        }
Esempio n. 3
0
        private async Task InitializeAsync(object activationArgs)
        {
            ExecutingPlatform.Current = AppPlatform.UWP;
            LoggerService.Initialize();

            ConfigurationManager.Initialise(PCLAppConfig.FileSystemStream.PortableStream.Current);
            ApplicationLanguages.PrimaryLanguageOverride = GlobalizationPreferences.Languages[0];

#if !DEBUG
            AppCenter.Start(ConfigurationManager.AppSettings["WindowsAppcenterSecret"], typeof(Analytics), typeof(Crashes));
#endif

            var navService = ConfigureNavigation();
            RegisterServices(navService);

            Xamarin.Forms.Forms.Init(activationArgs as LaunchActivatedEventArgs);
            new Presentation.App();
            BackgroundTaskService.RegisterBackgroundTasks();
            ThemeSelectorService.Initialize(app.RequestedTheme);
            await JumpListService.InitializeAsync();
        }