Пример #1
0
        //*********************************************************************
        ///
        /// <summary>
        /// This method starts the thread
        /// </summary>
        /// <param name="eventLog"></param>
        ///
        //*********************************************************************

        public static void StartAsync(EventLog eventLog)
        {
            _eventLog = eventLog;

            if (null == _syncWorker)
            {
                _syncWorker = new SyncWorker();
            }

            _syncWorker._workerThread = new Thread(_syncWorker.Worker);
            _syncWorker._azureThread  = new Thread(_syncWorker.AzureWorker);

            _syncWorker._workerThread.Start();
            _syncWorker._azureThread.Start();
        }
Пример #2
0
 protected void Application_Start()
 {
     WebApiConfig.Register(GlobalConfiguration.Configuration);
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     SyncWorker.StartAsync(Log);
 }