예제 #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);
        }
예제 #2
0
파일: Runtime.cs 프로젝트: umu24013/Chat
        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);
            }
        }