public void StartDaemon()
        {
            DaemonForNotification daemon = new DaemonForNotification();
            Thread th = new Thread(daemon.Notification);

            th.Start();
        }
Exemplo n.º 2
0
        protected void Application_Start()
        {
            Database.SetInitializer(new DBIntializator());

            DaemonForNotification notification = new DaemonForNotification();

            notification.StartDaemon();

            AreaRegistration.RegisterAllAreas();

            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
        }