Пример #1
0
 protected void Application_Start()
 {
     log4net.Config.XmlConfigurator.Configure();
     //扫描LuceneNet队列中的数据
     IndexMananger.GetInstance().StartThread();
     AreaRegistration.RegisterAllAreas();
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
     ExceptionConfig.CreateExceptionThread();
     GlobalConfiguration.Configure(WebApiConfig.Register);
 }
Пример #2
0
 public ActionResult LuceueTest()
 {
     IndexMananger.GetInstance().AddQueue(9999, "天才", "天朝的人是天才");
     return(Content("ok"));
 }