Exemplo n.º 1
0
        public override void InitWebSite()
        {
            //WebInitializer webInitializer = new WebInitializer();
            //webInitializer.Init(Container);

            SchedulerInitializer.Start();
            SchedulerInitializer.LoadActionConfigurations(new SampleActionConfiguration());
            SchedulerInitializer.LoadActionConfigurations(new ExceptionMailActionConfiguration());
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            var conf      = new AppInitializer();
            var router    = conf.Init();
            var bot       = new TelegramBot("703904124:AAF1xpEKAlVx_l1ovSUCDhaNuY7-b8ZydHY", router);
            var scheduler = SchedulerInitializer.InitializeScheduler(conf.AggregationService, bot).Result;

            bot.Start();
            Console.WriteLine("Press any key to stop...");
            Console.ReadKey();
        }
Exemplo n.º 3
0
        public void Configure(IApplicationBuilder app, IHostingEnvironment env)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            app.UseMvc();

            Database.Assemblies      = new String[] { "Quickflow.Core", "Quickflow.ActivityRepository", "Crawler" };
            Database.ContentRootPath = env.ContentRootPath;
            Database.Configuration   = Configuration;

            DbInitWorkflows.Init();

            SchedulerInitializer.Initialize();

            //new CurrencyCrawler().Execute(null);
            //new CurrencyMarketCrawler().Execute(null);
        }
Exemplo n.º 4
0
 public override void StopWebSite()
 {
     SchedulerInitializer.Stop();
 }