AppController.Start C# (CSharp) Method

Start() public method

public Start ( ) : void
return void
    void Start()
    {
        #if UNITY_EDITOR
        ServicePointManager.ServerCertificateValidationCallback = Validator;
        #endif
        App42API.Initialize (AppConstants.API_KEY,AppConstants.SECRET_KEY);
        App42API.EnableCrashEventHandler (false);
        App42Log.SetDebug (true);
        App42API.SetDbName (AppConstants.DB_NAME);
    }

Usage Example

        protected override void OnLaunched(LaunchActivatedEventArgs e)
        {
            // smooth merchant thumbnail image resizing
            new BitmapTransform().InterpolationMode = BitmapInterpolationMode.Cubic;

            Frame rootFrame = Window.Current.Content as Frame;

            if (rootFrame == null)
            {
                rootFrame = new Frame();
                rootFrame.NavigationFailed += OnNavigationFailed;
                Window.Current.Content = rootFrame;
            }

            if (rootFrame.Content == null)
            {
                var navigationService = new NavigationService(rootFrame);
                var loginPageViewModel = new LoginPageViewModel();
                var accountPageViewModel = new AccountPageViewModel();
                var schedulerService = new SchedulerService();

                var mondoAuthorizationClient = new MondoAuthorizationClient("YOUR_CLIENT_ID_HERE", "YOUR_CLIENT_SECRET_HERE", "https://production-api.gmon.io");

                var appController = new AppController(navigationService, mondoAuthorizationClient, loginPageViewModel, accountPageViewModel, schedulerService);

                appController.Start();
                rootFrame.Navigate(typeof (LoginPage), e.Arguments);
                rootFrame.DataContext = loginPageViewModel;
            }

            Window.Current.Activate();
        }
All Usage Examples Of AppController::Start