zoukankan      html  css  js  c++  java
  • 代码着色功能小改进

    改进后的效果如下:
    using System;
    using Dottext.Framework.Logger;

    namespace Dottext.Search
    {
        
    /// <summary>
        
    /// IndexQueue 的摘要说明。
        
    /// </summary>

        public class IndexQueue
        
    {
            
    public IndexQueue()
            
    {
                
            }


            
    public void Run(object state)
            
    {
                
    string path = SearchConfiguration.Instance().PhysicalPath;
                
    string tempIndex = System.IO.Path.Combine(path,SearchConfiguration.TempIndex);
                
    if(System.IO.File.Exists(tempIndex+"\segments"))
                
    {
                    LogManager.Log(
    "IndexQueue Abort","Another RebuildSafeIndex is Runing");
                    
    return;
                }

                Log log 
    = new Log();
                log.Title 
    = "Search Index";
                log.Message 
    = string.Format("Manual Build");
                IndexManager.RebuildSafeIndex();
                log.EndDate 
    = DateTime.Now;
                LogManager.Create(log);
                
            }

        }

    }

  • 相关阅读:
    hdu 6010 Daylight Saving Time
    hdu 5999 The Third Cup is Free
    2011 USP Try-outs F. Auction of Services
    1449 砝码称重
    hdu 6205 card card card
    hdu 6201 transaction transaction transaction
    Codeforces 828D
    Codeforces Round #434 D
    zoj
    Codeforces Round #434 C
  • 原文地址:https://www.cnblogs.com/dudu/p/20325.html
Copyright © 2011-2022 走看看