Example #1
0
        protected void Application_Start()
        {
            MiniProfilerEF6.Initialize();

            AreaRegistration.RegisterAllAreas();
            GlobalConfiguration.Configure(WebApiConfig.Register);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            var container = AutofacConfig.Register();

            AutomapperConfiguration.Configure(container);
            QuartzStart.Run();

            ViewEngines.Engines.Clear();
            ViewEngines.Engines.Add(new RazorThemeViewEngine());
        }
Example #2
0
 public WfController(IWorkTaskService service, ISchedulerFactory schedulerFactory, QuartzStart quart)
 {
     _service = service;
     this._schedulerFactory = schedulerFactory;
     _quart = quart;
 }
Example #3
0
 protected void Application_Start(object sender, EventArgs e)
 {
     //// 在应用程序启动时运行的代码
     QuartzStart.Start();
 }