Ejemplo n.º 1
0
        private void TimerAngelList_Elapsed(object sender, ElapsedEventArgs e)
        {
            if (!_isRunning)
            {
                _isRunning = true;
                try
                {
                    Log.Info("AngelList_feed", "update mongo with last investments feeds");

                    InvestmentStream.GetInvestmentsFromFeed();

                    Log.Info("AngelList_feed", "update mongo with last incubations feeds");

                    IncubationStream.GetIncubationsFromFeed();
                }
                catch (Exception ex)
                {
                    LogEventLog(ex.Message);
                }
                finally
                {
                    _isRunning = false;
                }
            }
            else
            {
                Log.Info("ProcessFiles", "Tried to start a new processing, but a process is still in progress");
            }
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            TimeSpan t;
            bool     success = TimeSpan.TryParse("2013-08-21T01:09:48Z", out t);

            DateTime d;

            success = DateTime.TryParse("2013-08-21T01:09:48Z", out d);
            //var res = StartupStream.GetStartups();
            var dic = StartupRoleStream.GetStartupRoles();

            InvestmentStream.GetHistory();
            //	InvestmentStream.CorrectFundInvestments();
            //	CrmReport.Send();

            InvestmentStream.GetInvestmentsFromFeed();
            IncubationStream.GetIncubationsFromFeed();
            //Console.Write(res);
        }