コード例 #1
0
        public ServerCore()
        {
            atomic = false;

            try
            {
                // Debug messages
                log.Debug("Initializing the update queue...");

                this.updates = new QueueUpdater(true);
                this.workerUnidadesFisicas                = new Thread(this.updates.UpdateUnidadesFisicas);
                this.workerNiveisDocumentais              = new Thread(this.updates.UpdateNiveisDocumentais);
                this.workerNiveisDocumentaisInternet      = new Thread(this.updates.UpdateNiveisDocumentaisInternet);
                this.workerNiveisDocumentaisComProdutores = new Thread(this.updates.UpdateNiveisDocumentaisComProdutores);
                this.workerProdutores = new Thread(this.updates.UpdateProdutores);
                this.workerAssuntos   = new Thread(this.updates.UpdateAssuntos);
                this.workerTipologias = new Thread(this.updates.UpdateTipologias);

                this.workerUnidadesFisicas.Start();
                this.workerNiveisDocumentais.Start();
                this.workerNiveisDocumentaisInternet.Start();
                this.workerNiveisDocumentaisComProdutores.Start();
                this.workerProdutores.Start();
                this.workerAssuntos.Start();
                this.workerTipologias.Start();

                // Debug messages
                log.Debug("Update queue running!");
            }
            catch (Exception e)
            {
                log.Fatal("Error starting the update queue.", e);
                throw;
            }
        }
コード例 #2
0
ファイル: ServerCore.cs プロジェクト: aureliopires/gisa
        public ServerCore()
        {
            
            atomic = false;
                        
            try
            {
                // Debug messages            
                log.Debug("Initializing the update queue...");

                this.updates = new QueueUpdater(true);
                this.workerUnidadesFisicas = new Thread(this.updates.UpdateUnidadesFisicas);
                this.workerNiveisDocumentais = new Thread(this.updates.UpdateNiveisDocumentais);
                this.workerNiveisDocumentaisInternet = new Thread(this.updates.UpdateNiveisDocumentaisInternet);
                this.workerNiveisDocumentaisComProdutores = new Thread(this.updates.UpdateNiveisDocumentaisComProdutores);
                this.workerProdutores = new Thread(this.updates.UpdateProdutores);
                this.workerAssuntos = new Thread(this.updates.UpdateAssuntos);
                this.workerTipologias = new Thread(this.updates.UpdateTipologias);

                this.workerUnidadesFisicas.Start();
                this.workerNiveisDocumentais.Start();
                this.workerNiveisDocumentaisInternet.Start();
                this.workerNiveisDocumentaisComProdutores.Start();
                this.workerProdutores.Start();
                this.workerAssuntos.Start();
                this.workerTipologias.Start();

                // Debug messages           
                log.Debug("Update queue running!");
            }
            catch (Exception e)
            {
                log.Fatal("Error starting the update queue.", e);
                throw;
            }                        
                       
        }