/************************** * ===== Processing ===== **************************/ private void ProcessThread(int id, string html) { if (String.IsNullOrEmpty(html)) { DatabaseQueue.Enqueue(new DbModels.Thread() { Id = id }); TelemetryManager.IncrimentEmptyThreads(); return; } RobloxThread thread = new RobloxThread(id); thread.AddPage(html); if (thread.IsEmpty) { DatabaseQueue.Enqueue(new DbModels.Thread() { Id = id }); TelemetryManager.IncrimentEmptyThreads(); return; } if (thread.PagesCount > 1 && thread.CurrentPage < thread.PagesCount) { PageDownloadingQueue.Enqueue(thread); return; } DbModels.Thread dbThread = thread.ToDbThread(); DatabaseQueue.Enqueue(dbThread); thread = null; //TODO: Evaluate necessity return; }