Exemplo n.º 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);
        }
Exemplo n.º 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);
            }
        }