Exemplo n.º 1
0
        static void Main(string[] args)
        {
            JobAccordProductMaster JAPM = new JobAccordProductMaster();
            DateTime ImportDate         = DateTime.Now.AddDays(-1);

            JAPM.ProcessAccordProductMasterData(ImportDate);
            return;

            //Utils.Trace("Starting Daemon...");
            //Process aProcess = Process.GetCurrentProcess();
            //string aProcName = aProcess.ProcessName;

            //if (Process.GetProcessesByName(aProcName).Length > 1)
            //{
            //    Utils.Trace("Exiting Daemon, another instance is running.");
            //    return;
            //}

            //StartJobProcessor();
            //StartPartProcessor();

            Console.ReadLine();
        }
        public static Job GetJobByType(int JobTypeId)
        {
            Job J = null;

            switch (JobTypeId)
            {
            case 1:
                J = new EquityFlaggingJob();
                break;

            case 2:
                J = new DailyAssetValuation();
                break;

            case 3:
                J = new MFTransactionCancellationJob();
                break;

            case 4:
                J = new AlertServicesTriggerJob();
                break;

            case 5:
                J = new MutualFundNAVDownload();
                break;

            case 6:
                J = new JobAccordProductMaster();
                break;

            default: J = new JobTest();
                break;
            }

            return(J);
        }