Example #1
0
        public Runtime()
        {
            _interface = new BackendInterface(this);
            _events = new Events();

            CoreApplication.Exiting += OnApplicationExiting;
            CoreApplication.Resuming += OnApplicationResuming;
            CoreApplication.Suspending += OnApplicationSuspending;

            if (_hasBackgroundAccess)
                Init();
            else
                PushEvent(RequestType.BackgroundAccess);
        }
Example #2
0
        public Runtime()
        {
            _interface = new BackendInterface(this);
            _events    = new Events();

            CoreApplication.Exiting    += OnApplicationExiting;
            CoreApplication.Resuming   += OnApplicationResuming;
            CoreApplication.Suspending += OnApplicationSuspending;

            if (_hasBackgroundAccess)
            {
                Init();
            }
            else
            {
                PushEvent(RequestType.BackgroundAccess);
            }
        }