Esempio n. 1
0
 void Update()
 {
     if (!IsThreaded)
     {
         HTTPManager.OnUpdate();
     }
 }
        void Update()
        {
            if (!IsSetupCalled)
            {
                Setup();
            }

            if (!IsThreaded)
            {
                HTTPManager.OnUpdate();
            }
        }
Esempio n. 3
0
        void ThreadFunc(object obj)
        {
            IsThreadRunning = true;
            while (IsThreadRunning)
            {
                HTTPManager.OnUpdate();

#if NETFX_CORE
                await Task.Delay(ThreadFrequencyInMS);
#else
                System.Threading.Thread.Sleep(ThreadFrequencyInMS);
#endif
            }
        }
Esempio n. 4
0
        void ThreadFunc(object obj)
        {
            HTTPManager.Logger.Information("HTTPUpdateDelegator", "Update Thread Started");

            try {
                IsThreadRunning = true;
                while (IsThreadRunning)
                {
                    HTTPManager.OnUpdate();

#if NETFX_CORE
                    await Task.Delay(ThreadFrequencyInMS);
#else
                    System.Threading.Thread.Sleep(ThreadFrequencyInMS);
#endif
                }
            } finally {
                HTTPManager.Logger.Information("HTTPUpdateDelegator", "Update Thread Ended");
            }
        }
Esempio n. 5
0
 private void LateUpdate()
 {
     HTTPManager.OnUpdate();
 }
 void Update()
 {
     HTTPManager.OnUpdate();
 }