Ejemplo n.º 1
0
 private void btnCrmPool_Click(object sender, EventArgs e)
 {
     if (_crmPool == null || _crmPool.IsStopped)
     {
         StartProcess(_crmPool = new CrmPool(), sender as Button);
     }
     else
     {
         StopProcess(_crmPool, sender as Button);
     }
 }
Ejemplo n.º 2
0
        private ServiceThread GetServiceThread()
        {
            ServiceThread result = null;

            switch (ServiceName)
            {
            case "TSEmailProcessor": result = new ServiceThreadPool <EmailProcessor>("EmailProcessor"); break;

            case "TSEmailSender": result = new ServiceThreadPool <EmailSender>("EmailSender"); break;

            case "TSSlaProcessor": result = new SlaProcessor(); break;

            case "TSSlaCalculator": result = new SlaCalculator(); break;

            case "TSIndexer": result = new ServiceThreadPool <Indexer>("Indexer"); break;

            case "TSIndexRebuilder": result = new ServiceThreadPool <Indexer>("Indexer"); break;

            case "TSCrmPool": result = new CrmPool(SystemUser.CRM); break;

            case "TSReminderProcessor": result = new ReminderProcessor(); break;

            case "TSImportProcessor": result = new ImportProcessor(); break;

            case "TSWebHooksProcessor": result = new WebHooksPool(SystemUser.CRM); break;

            case "TSCustomerInsights": result = new CustomerInsightsProcessor(); break;

            case "TSReportSender": result = new ServiceThreadPool <ReportSender>("ReportSender"); break;

            case "TokTranscoder": result = new ServiceThreadPool <TokTranscoder>("TokTranscoder"); break;

            case "TSTaskProcessor": result = new ServiceThreadPool <TaskProcessor>("TaskProcessor"); break;

            default: result = null; break;
            }

            return(result);
        }