Example #1
0
        public static void Shutdown()
        {
            QueryLogger al = instance;

            instance = null;
            if (al != null)
            {
                al.shutdown();
            }
        }
Example #2
0
        void Application_Start(object sender, EventArgs e)
        {
            // Init query logger
            QueryLogger.Init();

            // Load dictionary
            string dictFilePath = HttpRuntime.AppDomainAppPath;

            dictFilePath = Path.Combine(dictFilePath, "_data");
            dictFilePath = Path.Combine(dictFilePath, "handedict-zydeo.bin");
            dict         = new DictEngine(dictFilePath, new FontCoverageFull());

            // Initialize text provider
            TextProvider.Init();

            // Some static config parameters
            AppSettingsReader asr = new AppSettingsReader();

            gaCode = asr.GetValue("gaCode", typeof(string)).ToString();
        }
Example #3
0
 void Application_End(object sender, EventArgs e)
 {
     // Shut down query logger
     QueryLogger.Shutdown();
 }
Example #4
0
 public static void Init()
 {
     instance = new QueryLogger();
 }